the length of the diagonals are 3x+2 and 5x-8. find x

assuming the diagonals are equal,

3x+2 = 5x-8
x = 5