The long leg of a right triangle is 7 more than the short leg. The hypotenuse is 7 less than 3 times the short leg. Find the length of the short leg of the triangle.