The two escape by hitching a lift on one of the Vogon demolition ships. This is, however, against Vogon regulations, and when the pair are discovered, they are tortured with hearing Vogon poetry, the third worst in the known Universe, and then thrown into space. They are, very improbably, picked up by the Heart of Gold, a ship powered by an infinite improbability drive, which has been stolen by Ford's semi-cousin and President of the Galaxy, Zaphod Beeblebrox. Zaphod, accompanied by Trillian and the chronically depressed robot Marvin, is searching for the legendary planet of Magrathea, which is rumoured to have manufactured luxury planets. Ford is initially skeptical, but they do, in fact, find Magrathea.
There, Arthur, after being separated from the rest of the group, is taken into the interior of the planet by a native, Slartibartfast. The others are kidnapped. Slartibartfast explains to Arthur that the Earth was actually a supercomputer commissioned and paid for by a race of "hyper-intelligent," "pan-dimensional" beings. These creatures had earlier built a supercomputer called Deep Thought to calculate the Answer to Life, the Universe, and Everything. This computer, after seven and a half million years of calculation, had announced that the Answer is, in fact, 42. Being unsatisfied with the Answer, they set about finding the Question which would give the Answer meaning, whereupon Deep Thought designed the Earth, to calculate it. However, ten million years later, and just five minutes before the completion of the program Earth was designed to execute, the Earth is