The Mars Tourist Agency sells places for the Mars Tour at $10 million each or $50 million for a group of 6 people. There is a fifty-fifty chance of returning safely to Earth.

If a class of 25 brave students wants to make the trip to Mars, what is the minimum possible cost?