A group of 5 friends decides to buy a birthday gift for another friend. They decide to split the cost equally. However, before they can buy the gift, 2 friends back out, leaving the remaining friends to cover the entire cost. If each remaining friend has to pay $15 more than originally planned, what is the total cost of the gift? Let's think step by step and output the final answer within \boxed{}.
user