To determine how many office buildings he cleaned, let's define \( x \) as the number of office buildings cleaned. Given that he cleaned 21 windows per office building, the total number of windows cleaned from the office buildings would be \( 21x \).
The problem states that he also cleaned 42 windows from a school, and altogether he cleaned a total of 126 windows. Thus, we can set up the equation:
\[ 21x + 42 = 126 \]
This equation represents the total number of windows cleaned (the number of windows from office buildings plus the windows from the school equals the total cleaned).
So, the correct response is:
21x + 42 = 126