A and B started a business by investing ₹10,000 and ₹18,000 respectively. After 4 months C joined the business with a capital of ₹12,000. After two more months B left the business his capital. At the end of the year A got a share of ₹7,500 in the profit. What is the total profit earned ?