Answer: For 2: 40/9 hours.
Explanation:
Tim can paint 1/10 of his barn in an hour.
JoAnn can paint 1/8 of the barn in an hour.
Now lets say if they work together they can paint 1/x of the barn in a hour.
Now we make an equation:
1/10 + 1/8 = 1/x
=>x/10 + x/8 = 1
=>x=40/9
If they work together, they can paint the barn in 40/9 hours.