A body moves in SHM between two point 20m on the straight line Joining the…