Step 1: Expand both squares.
\[
\left(x-\frac{1}{2}\right)^2 = x^2 - x + \frac{1}{4},
\]
\[
\left(x-\frac{3}{2}\right)^2 = x^2 - 3x + \frac{9}{4}.
\]
Step 2: Subtract the expressions.
\[
\left(x-\frac{1}{2}\right)^2 - \left(x-\frac{3}{2}\right)^2
= (x^2 - x + \tfrac{1}{4}) - (x^2 - 3x + \tfrac{9}{4})
= 2x - 2.
\]
Step 3: Form the equation.
\[
2x - 2 = x + 2.
\]
Step 4: Solve for $x$.
\[
2x - x = 2 + 2 $\Rightarrow$ x = 4.
\]
Step 5: Conclusion.
Thus, the correct value of $x$ is $4$.
The relationship between two variables \( x \) and \( y \) is given by \( x + py + q = 0 \) and is shown in the figure. Find the values of \( p \) and \( q \). Note: The figure shown is representative.
