Call the remaining two legs x and y.
Then we know that
<-- Since we have a right triangle.
Solving the first for y gives:
Inserting this into the second equation gives:
The quadratic formula says
So let x = 1.8834 cm, then y = 6.1166 cm. (Or x = 6.1166 cm and y = 1.8834 cm. Whichever.)