A and B both start a business. Amount invested by B is one-third of that invested by A. Three months from the start of the business, A withdrew one-third of his investment and B tripled his investments. If from the total annual profit earned, A receives Rs. 1800 as his share of the profit, what was the total annual profit earned?