At first, Caden had some money. He spent 16 of it on a dress and 23 of the remainder on a blouse. After that, his mother gave him $160. 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 Caden have at first?