An astronomer observes a nearby Cepheid at a distance of 1000 light-years and a Cepheid in M31. The two Cepheids have the same pulsation period. The nearby Cepheid appears 4 million times brighter than the Cepheid in M31. What is the distance of the Cepheid in M31