At first, Ryan had some money. He spent 13 of it on a vest and 35 of the remainder on a shirt. After that, his aunt 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 4 : 3. How much money did Ryan have at first?