For this case, the first thing we must do is define a variable.
We have then:
w: number of weeks.
The equation for this problem is:
14w + 7w = 126
From here, we clear the value of w.
We have then:
21w = 126
w = 126/21
w = 6
Answer:
the number of weeks it took Mark and Mary to complete 126 projects is:
w = 6