We have, BE and AD are the medians. So, E and D are the mid points of AC and BC respectively. ∴ Coordinates of E=(2a,2b)
and coordinates of D=(2a,0)
Now, slope of median BE=m1=ab
Also, slope of median AD=m2=a−2b
Now, m1 & m2 are perpendicular if m1m2=−1 ⇒ab×a−2b=−1 ⇒2b2=a2⇒a=±2b