Time and work

The rate of work of A is 50% more than that of B. A can complete the work in
18 days. A started the work together and B joined him after few days and the
work was completed in 14 days. For how many days did A worked alone?