Astronomers discover ancient worlds from another galaxy next door