It appears that you just subtracted the 3 from the 5. The ramp is the hypotenuse of a right triangle. You need to use the Pythagorean Theorem: