To solve the problem, we need to account for the number of office buildings and the school windows. Let's define:
- \( x \): the number of office buildings
- Each office building has 21 windows
- The school has 42 windows
The total number of windows cleaned is given as 126. Therefore, we can express this as an equation:
\[ 21x + 42 = 126 \]
This equation represents the total number of windows cleaned from the office buildings and the school.
Now, based on the given options, the correct equation to solve this problem algebraically is:
21x + 42 = 126