A and B working separately can do a piece of work in 9 and 12 days respectively. If they work for a day alternatively, A beginning, in how many days, the work will be completed?