To solve this problem, we need to set up an equation based on the information given. Let \( x \) represent the number of office buildings. The window cleaner can clean 21 windows per office building and can also clean the windows of one school that has 42 windows. Altogether, they can clean 126 windows, which gives us the following equation:
\[ 21x + 42 = 126 \]
So, the correct choice is:
21x + 42 = 126.