Two sides of a right triangle, the adjacent and hypotenuse, are 3x and 5x, the perimeter is 84, find x?