The longer leg of a right triangle is 3 inches more than 3 times the length of the shorter leg. The area of the triangle is 84 square inches. How do you find the perimeter of a right triangle?