It appears that you used the Pythagorean Theorem with 2 and 10 as the legs. However, the ramp is the hypotenuse of the right triangle. The correct equation to use is: