At first, Asher had some money. He spent 14 of it on a sweater and 27 of the remainder on a blouse. After that, his uncle gave him $280. The ratio of the total amount of money he had in the end to the amount of money he had at first was 5 : 4. How much money did Asher have at first?