Type I delta-Cepheid star, calculation of apparent maginute and luminosity
Pay attention to your signs: Remember that the value of $M$ is negative so on the second equation when you move $M$ to the right hand side, is $ 5 \log()−5- M$ giving you an  apparent magnitude of $\sim -6$ which is acceptable as cepheids are the brightest stars in the galaxies