The position of a particle moving along x-axis is given by x=(t2−15t+10) m, where t is in second. Find the time when particle comes at rest?