At first, Flynn had some money. He spent 16 of it on a shirt and 34 of the remainder on a blazer. After that, his mother gave him $230. The ratio of the total amount of money he had in the end to the amount of money he had at first was 7 : 6. How much money did Flynn have at first?