It is 32^2 - 16^2
Draw a triangle
Richmond is right above of Dayton (North). The distance between them is a side of the right triangle. You do not know this distance , it is the unknown side.
Dayton is 16 mi to the east. It is the other side of the right triangle.
The other known length is the hypotenuse of the right triangle, which is the distance from Easton to Dayton. It is 32 mi.
As per Pythagorean theorem, (Side_1)^2 = (hypotenuse)^2 - (Side_2)^2