From Proto-Italic *poimeks, from Proto-Indo-European *(s)poH(y)- (“foam”). Related to spūma. Compare rūmex for the unusual suffix.
Practice speaking and memorizing "pumex" and many other words and sentences in Latin.