A and B can do a piece of work separately in 8 and 12 hours. If they work alternate hours, A starting, when will the work be finished?