rectangle ABCD AC=2x+2, BD= 6x-6

What is the question?

You have written the lengths of two diagonals. For a rectangle, they must be equal. That will allow you to solve for x.

2x + 2 = 6x - 6
4x = 8
x = 2