The legs are 5 inches long.
Use the Pythagorean theorem:

The length of the hypotenuse of the triangle is approximately 7 inches long.
Answer:
$36.75
Step-by-step explanation:
If you take the original cost 35.00 and add 5% to it, you would get 36.75. If you think about it, it has to be above $35 since the sales tax would be more.
Attached the solution and work. I think this is what you asked for.