Time taken by a particle performing SHM on a straight line to pass from points A to B where velocities are the same.

a) T/2
b) T
c) 2T
d) 4T