Let O be the origine (or the departure point) and OA (south) and OB East
We have now a right triangle with the hypotenuse AB = 50 mi.
If OB = x, then OA = x +10 (given). Now apply Pythagoras:
OA² + OB² = AB²
(x+10)² + x² = 50²
x²+20x+100+x² = 2500
2x²+20x-2400 =0
Solve for x this quadratic equation and you will find x' = 30 and x" = -40
Obviously x" = -40 is an extraneous solution. So the answer is:
OB = x= 30 mi (travelled EAST)
OA=x+10 = 40 mi (travelled south)