Quadratic Equat & Functions

My problem I have is on shapes which I get really confused on in story type problems and trying to understand how to get the quadratic equation to be able to fit the story and to solve it?

The problem:

The hypotenuse of a right triangle is 6 feet long. One leg is 2 feet shorter than the other. Find the lengths of the legs and round to the nearest tenth of a foot.

Can you show the second part?

thank you for being so very quick ... are you able to show me the second part of the equation for the other leg? They have 3.1 feet as an answer and I am not getting it? I'm a little lost. Sorry I'm just a farm girl who isn't very good with these types of problems. :o