Vishnu, in his manifestation as Hayagriva, killed them, and retrieved the Vedas. The bodies of Madhu and Kaitabha disintegrated into 2 times 6 — which is twelve pieces (two heads, two torsos, four arms and four legs). These are considered to represent the twelve seismic plates of the Earth.