The diagonals of an isosceles trapezoid are represented by 4x-47 and 2x+31. What is the value of x?