Given ramp constitutes a right angles triangle, therefore the Pythagoras Theorem is applicable.
Let H be the horizontal distance of the ramp.
The hypotenuse is 37 inches, and the height is 12 inches.
Then, according to the Pythagoras Theorem,
Thus, the horizontal distance of the ramp is 35 inches.