The object change direction when the first derivative change its sign,. So we need to find the first derivative and equate this result to zero.
The first derivative is given by

By equating this result to zero ,we have

This implies that

so, the first derivative change its sign when

as we can note in the following graph:
because the graphs falls when t= 5seconds.
This means that the motion objects change direction at t=5 seconds.