I would figure that by scaling, you can make making the hypotenuse 5, then knowing this, and the 3-4-5 rule, you could make the legs, 3 and 4 respectively, then to convert back to the parameters of the problem, you'd multiply back by 3, giving you and which if added, give you the 21 cm stated in the problem.