The Evolution Of Star-Forming And Quiescent Massive Galaxies Through Cosmic Time