-dem (Latin) comes from English them, from Middle English þem, from Old Norse þeim, from Proto-Germanic þaimaz, from Proto-Germanic sa, from Proto-Indo-European só — this; that.
-dem (Latin): "demonstrative ending"