I'm not sure what "and 8 inches" refers to, but if s(t) is the position/displacement as a function of time, then the velocity is just its first derivative, and the acceleration is just the second derivative. This is because the derivative is equal to the instantaneous rate of change, which is the relationship between velocity and position, and is the relationship between acceleration and velocity.
s(t) = 5sin(2t)
v(t) = 10cos(2t)
a(t) = -20sin(2t)
v(4) = 10cos(8)
a(4) = -20sin(8)