The diagonals of quadrilateral ABCD intersect at point E, AE=5x-10 and EC=2x+5. If ABCD is a rectangle, find the value of x.
A.5
B.10
C.15
D.20
A.5
B.10
C.15
D.20