A group of friends decided to share the cost of a gift equally. If each person contributed Rs. 50, the amount would have been short by Rs. 20. However, if each person contributed Rs. 60, they would have Rs. 30 more than the required amount. What is the price of the gift?