Let's assume they are replacing 35 windows (This is arbitrary.. any reasonable assumption will work!)
So, David replaces 35 windows in 7 days or 5 windows/day
and Coby replaces 35 windows in 5 days or 7 windows/day
After working together for 2 days, they complete 2 x 12 = 24 windows
That leaves 35-24 = 11 windows to do.
David then completes the job 11 windows/5 windows/day = 11/5 days
So, it takes David 2.2 more days to complete the job for a total of 4.2 days to do the whole job.