Concept:
Let
\[
t_1
\]
be the time of acceleration and
\[
t_2
\]
be the time of deceleration.
Then
\[
t_1+t_2=10.
\]
The maximum speed attained is the same at the end of acceleration and at the beginning of deceleration.
Step 1: Express maximum speed in two ways.
During acceleration,
\[
v_{\max}=6t_1.
\]
During deceleration,
\[
v_{\max}=4t_2.
\]
Hence,
\[
6t_1=4t_2.
\]
\[
3t_1=2t_2.
\]
\[
t_2=\frac32 t_1.
\]
Step 2: Use the total time.
\[
t_1+t_2=10
\]
\[
t_1+\frac32 t_1=10
\]
\[
\frac52 t_1=10
\]
\[
t_1=4\ \text{s}.
\]
Therefore,
\[
t_2=6\ \text{s}.
\]
Step 3: Calculate the maximum speed.
\[
v_{\max}=6t_1
\]
\[
=6\times4
\]
\[
=24\ \text{m s}^{-1}.
\]
\[\begin{aligned}
\boxed{24\ \text{m s}^{-1}}
\end{aligned}\]
Hence, option \(\mathbf{(C)}\) is correct.