Tim decides to run a campaign for governor. He gets the maximum $1200 donation from 500 people, and three times as many people donated half this sum of money to his campaign. These donations together accounted for 40% of the total money that Tim raised. How much total money did he raise?