A particle moves along a straight line such that its displacement S varies with time t as S = a + bt + gt^2.