A started a work and left after working for 1 day. Then B was called and he finished the work in \(4\frac{1}{2}\) days. Had A left the work after working for \(1\frac{1}{2}\)days, B would have finished the remaining work in 3 days. In how many days can each of them, working alone, finish the whole work?