Since the wall forms one side, the farmer only needs fencing for three sides: two widths and one length.
\begin{align*}
2x + \text{length} \amp= 60\\
\text{length} \amp= 60 - 2x
\end{align*}
Finding the area of the rectangular pen:
\begin{align*}
\text{Area} \amp= \text{length} \times \text{width}\\
\amp= (60 - 2x) \times x
\end{align*}
Expanding:
\begin{align*}
\amp= 60x - 2x^2
\end{align*}
Writing in standard form (with \(x^2\) term first):
\begin{align*}
\amp= -2x^2 + 60x
\end{align*}
This quadratic expression represents the area of the pen in square metres.