Brady, Dana, Elijah, and Gianna took part in the school play. Before the start of the play, they each guessed the number of people who would come to see the play. Brady guessed 292 people, Dana guessed 325 people, Elijah guessed 340 people, and Gianna guessed 371 people. It turned out that Dana's guess was the closest, Elijah's guess was the second closest, and Brady's guess was the farthest from the actual number. What is the actual number of people who came to see the play?