Figure below corresponds to two circular motions

Figure below corresponds to two circular motions. The radius of the circle, the period of revolution, the initial position, and the sense of revolution (i.e., clockwise or anticlockwise) are indicated on each figure. Obtain the corresponding simple harmonic motion of the x-projection of the radius vector of the revolving particle P, in each case.