Ms. Sampson wanted to take her whole class of 34 students to a baseball game that costs $27 per ticket.

How much did she spend on the students' tickets?