A had $360 more than B. When A spent $144 and B spent half of his money, A had 6 times as much money as B, Find the ratio of the amount of money A had at first to that of B. Find the ratio of the amount of money A had at first to that of B. Give your answer in its simplest form.