According to Pythagorean Theorem, the square of the ramp length equal the sum of the square of the two other side of the triangle.
All you have to do is square the vertical distance, then also, square the horizontal distance, add them together then square root it
hope i help!!