Answer
$n=\dfrac{2S}{a+L}$
Work Step by Step
Using the properties of equality, in terms of $
n
,$ the given equation, $
S=\dfrac{n(a+L)}{2}
,$ is equivalent to
\begin{array}{l}
2S=n(a+L)
\\\\
\dfrac{2S}{a+L}=n
\\\\
n=\dfrac{2S}{a+L}
.\end{array}