10 friends decided to buy a joint gift for their best friend. But as it happens, the two gave up and decided to buy her a present themselves. Thus, the remaining 8 friends had to add 50 dollars each to buy the gift.
How much did the gift cost?