the longer leg of a right triangle is 3m longer than the shorter leg. the hypotenuse is 6m longer than the shorter leg. find the side lengths of the triangle