For the parallelogram ABCD to be a rectangle, the lengths of the diagonals AC and BD must be equal. Therefore, we can set the lengths equal to each other:
\[ AC = BD \]
Given:
- \( AC = x + 7 \)
- \( BD = 3x - 5 \)
Setting the expressions equal to each other:
\[ x + 7 = 3x - 5 \]
Now, we can solve for \( x \):
- Subtract \( x \) from both sides:
\[ 7 = 2x - 5 \]
- Add 5 to both sides:
\[ 12 = 2x \]
- Divide by 2:
\[ x = 6 \]
Therefore, the value of \( x \) that makes ABCD a rectangle is:
\[ \boxed{6} \]