First, we must find out how much of the job remains and then how long the two will need.
The first sec. worked for 2 hours and so completed a fraction
If they now both work for
So we need to solve
Multiplying both sides by 40 gives