To find the number of office buildings that can be washed, let \( x \) represent the number of office buildings.
The window cleaner can clean 21 windows per office building, so the total number of windows cleaned from the office buildings would be \( 21x \). Since there are also 42 windows in the school that needs cleaning, the equation representing the total number of windows cleaned will be:
\[ 21x + 42 = 126 \]
This is the correct equation to use to solve the problem.
Therefore, the correct response is:
21x + 42 = 126