They go through a wormhole in time and end up baffling and infuriating the little green men who live on the planet Zog, which is at the other end of the time-space wormhole. The Zogians don't have feet, so they don't know what to do with the socks which are just gathering in deep sock-drifts all over the place