The hypotenuse of a right triangle is 5inches long. The shorter leg is 1 inch shorter than the longer leg. Find the side lengths of the triangle.

Length of the shorter leg:

Length of the longer leg:
Length of the hypotenuse: