We will use both of the equations of motion to reach the third equation of motion. This will require a bit of algebra.
S=ut+12at2andv=u+at, include the time variant t
There will be some situations when we do not have any information about time and so it would be a good idea to derive an equation that does not have a t term.
To do this, we rearrange our first equation to get
t=v−ua
and use this to replace t wherever it appears in the second equation. So
S=ut+12at2 becomes,
S=u(v−ua)+12a(v−ua)2
⇒2aS=2u(v−u)+(v−u)2
⇒2aS=2uv−2u2−v2−2uv−u2
⇒2aS=v2−u2
⇒v2=u2+2aS