The particle executing simple harmonic motion has a kinetic energy of K0cos2ωt. The maximum values of the potential energy and the total energy are respectively

A. K₀ and 2K₀
B. 0 and 2K₀
C. K₀/2 and K₀
D. K₀ and K₀