The ratio of students to teachers competing in a charity race is 5:4. If 40 students take part in the race, how many teachers are there?