(N/A) The functions have the same frequency and amplitude,but different initial phases.
Amplitude of oscillation,$A = 2.0 \; cm = 0.02 \; m$.
Force constant of the spring,$k = 1200 \; N m^{-1}$.
Mass,$m = 3 \; kg$.
Angular frequency of oscillation,$\omega = \sqrt{\frac{k}{m}} = \sqrt{\frac{1200}{3}} = \sqrt{400} = 20 \; rad s^{-1}$.
$(a)$ When the mass is at the mean position at $t = 0$,the initial phase is $0$. The displacement is $x = A \sin(\omega t) = 0.02 \sin(20t)$.
$(b)$ At the maximum stretched position (extreme right),the initial phase is $\frac{\pi}{2}$. The displacement is $x = A \sin(\omega t + \frac{\pi}{2}) = A \cos(\omega t) = 0.02 \cos(20t)$.
$(c)$ At the maximum compressed position (extreme left),the initial phase is $\frac{3\pi}{2}$ (or $-\frac{\pi}{2}$). The displacement is $x = A \sin(\omega t + \frac{3\pi}{2}) = -A \cos(\omega t) = -0.02 \cos(20t)$.
These functions for $SHM$ differ from each other only in their initial phases.