A school is organizing a field trip and is calculating the total cost based on the number of students attending. The cost per student is $45, which includes transportation and lunch. If 15 students decide not to attend, resulting in a total of 30 students going on the trip, what will be the total cost for the trip?