An insurance agent gets commission of 20% on first year premium, 6% on second and third year‘s premium and 4% on subsequent years premium on an insurance policy of Rs. 40,000. Annual rate of premium being Rs. 30 per thousand. Find the total earning of the agent for which 5 annual premiums have been paid.