Because the diagonals of a rectangle are congruent, you would set the two equations equal to each other and solve for x.
16x + 2 = 36x - 6
8 = 20x
x = 8/20, which would simplify into 2/5, or 0.4
Plug the value of x back into one of the equations.
16(0.4) + 2
6.4 + 2
8.4
Check with the other diagonal to confirm.
36(0.4) - 6
14.4 - 6
8.4
The length of each diagonal is 8.4 units.