The hypotenuse of a right triangle is 52 in. One leg of the triangle is 8 in. More than twice the lenght of the other. What is the perimeter of the triangle?