2.4 hours
You can get this by setting up the equation:
x/4 + x/6 = 1
Where x is equal to the amount of hours spent working. In this equation x/4 would be Doug. In 4 hours he would paint on room. x/6 would be Elaine. When you add them together using common denominators, you can find x.