The answer is 70/17 hours.
Given:
The time required by Sally to paint is, S = 10 hours.
The time required byDave to paint is, D = 7 hours.
The objective is to find the number of hours it will take if they do it working together.
Work done by Sally in 1 hour can be calculated as,

Work done by Dave in 1 hour can be calculated as,

The work completed by both together in 1 hour can be calculated as,

Now, the time required to complete the work together can be calculated as,

Hence, the time required to complete the work together is 70/17 hours.