The capital of the firm of M and N is Rs. 1,00,000 and the market rate of interest is 15%. The annual salary to partners is Rs. 6,000 each. The profits for the last 3 years were Rs. 30,000 (for 2022); Rs. 36,000 (for 2023) and Rs. 42,000 (for 2024). Goodwill is to be valued at 2 years' purchase of the last 3 years' average super profits or 3 years' purchase of the last 2 years' average super profits, whichever is less. Calculate the goodwill of the firm.