A window cleaner has enough supplies to clean 21 windows per office building on a certain number of building. They can also clean the windows of a school with 42 window. Altogether, there are enough supplies to clean 126 windows. How many office buildings can be washed? identify the equation that would be used to solve this problem algebraically.

Let's assume the number of office buildings is x.

The window cleaner can clean 21 windows per office building, so the number of windows cleaned in office buildings is 21x.

The window cleaner can also clean 42 windows in the school.

Therefore, the total number of windows cleaned is 21x + 42.

According to the problem, the total number of windows cleaned is 126.

So, we can write the equation as:

21x + 42 = 126

This is the equation that would be used to solve this problem algebraically.