The longer leg of a right triangle is 3 inches more than three times the length of a shorter leg the area of the triangle is 84 in.² what is the perimeter of the triangle.