Work problem

A alone can build a road in 15 days, while B alone can do it in 30 days. If A and B started working togather and A left after 8 days, find the total days required for B to complete the road.

Hint: A and B would work together for the first 8 days. How much work can be done during that time? Think about how much time it would take if A would not leave at all.