We have that the distance traveled by the football ball is the hypotenuse of a right triangle whose other legs are 25 yards (40 yard line - 15 yard line) and 35 (45 yard line - 10 yard line), so the distance ir traveled was:
Which means he traveled around 43 yards