Answer: 5 and 7 (See the figure attached).
Explanation:
You need to remember that the slope can be calculated with this formula:

Where the "rise" is the vertical distance of the triangle and the "run" is the horizontal distance of the triangle.
You know that the incline of this triangle has a slope of
, then you can say that the "rise" is 5 and the "run" is 7:

Therefore, the possible measurements for the two legs of the right triangle are: 5 and 7 (Observe the figure attached).