Just before the Earth is demolished to make room for a new hyperspace bypass, very ordinary Earthman Arthur Dent is taken offworld by his friend, Ford Prefect. Ford, it turns out, comes "from a small planet somewhere in the vicinity of Betelgeuse," and is "a roving researcher for that wholly remarkable book,
The Hitchhiker's Guide to the Galaxy."
They hitch a ride on one of the Vogon constructor ships that demolished the earth, are ejected into space, and picked up by The Heart of Gold, a new spaceship powered by the Infinite Improbability Drive, which has just been stolen by two-headed, three-armed Zaphod Beeblebrox, President of the Galaxy. They journey with him to Magrathea, the planet where, millions of years earlier, the Earth was constructed as part of a giant, organic computer designed to come up with the question to the answer to the question of life, the universe, and everything. Get it?