In a simple harmonic motion (SHM) the particle oscillates about its mean position on a straight line. The particle moves from its mean position (O) to an extreme position (P) and then return to its mean position covering same distance of A. Then by the conservative force, it is moved in opposite direction to a point Q by distance A and then back to mean position covering a distance of A. This comprises of one time period as shown below 
Hence, in one time period it covers a distance of x=OP+PO+OQ+QO=A+A+A+A=4 A