A school is organizing a field trip and needs to rent buses. Each bus can carry 40 students. If the school has a total of 150 students going on the trip, how many buses does the school need to rent?