A baseball diamond is a square with side $90ft$. A batter hits the ball and runs toward first base with a speed of $24ft/s$.
a)At what rate is his distance from second base decreasing when he is halfway to first base?
b)At what rate is his distance from third base increasing at the same moment?
I don't know how to do this problem, can you give me a hint




Hint:
A) Make a right triangle where the sides are: the distance to first base, distance to second base and the side connecting first and second base. Then differentiate to find related rates.
B) Make another triangle where the sides are: distance from starting point, distance from third base and the side connecting the starting point and third base.