The math:
The millionaire had his actress girlfriend along for the trip along with his wife. (Prototypical rich deep staters).
The song makes it clear that it is the professor AND Mary Ann together.
And the captain had Gilligan.
For years after the series “Maryann”would sent Russell Johnson a Christmas Cards signed “...and the rest”