Two Fifth grade classes raised money for their local goodwill charities. There are 20 students in class a. Each student raised $18. There are 24 students in class b. Each student in class b raised 2 times as much as each student in class a. How many money was raised all together? show your work and explain your answer.