Jones takes 8 hours , therefore in one hour he paints a fraction of 1/8
smith takes 6 hours, thus in one hour he paints a fraction of 1/6
When working together they paint a fraction of 7/24 in an hour.
After 2 hours they will have painted a fraction of (7/24) ×2 = 7/12
The remainder will be 5/12 which will be undertake by smith alone.
Smith will therefore take 5/12 ×6/1 = 2.5 hour or 2 hours 30 minutes