We have the following:

We have that $M$ is on the line segment $AB$.
$\overrightarrow{OA}=\overrightarrow{a}$
$\overrightarrow{OB}=\overrightarrow{b}$
Could you explain to me why it stands that $$\overrightarrow{OM}=s \overrightarrow{a}+(1-s)\overrightarrow{b}, 0 \leq s \leq 1$$ ??
HINT: Write $\overrightarrow{OM} = \overrightarrow{OA} + \overrightarrow{AM} = \vec a + \dots$.