Placental mammals evolved from neither marsupials nor reptiles. All three groups share a common ancestor.
Reptiles and mammals diverged long ago. Within the mammalian lineage, marsupials and placentals later split from each other. Therefore, placental mammals share a common ancestor with marsupials and a more distant one with reptiles.