There is already a good answer by @Dale. Though if you want to do little math, you can do it this way. Write the Lorentz transformation
$$x'=\gamma \ (x-vt)$$
$$t'=\gamma \left(t-\frac{vx}{c^2}\right)$$
Use these two find $(x,t)$ as function of $(x',t')$ which would lead to
$$x=\gamma \ (x'+vt')$$
$$t=\gamma \left( t'+\frac{vx'}{c^2}\right)$$
That's what you are asking for.
You can go even further through the basics remains the same. We know that co-ordinate transformations are just rotations in Hyperbolic space. Thus $S$ to $S'$ is a rotation through an angle, say $\beta$, then from $S'$ to $S$ is a rotation through an angle $-\beta$. If you recall
$$\begin{pmatrix}
x \\
ct
\end{pmatrix}=\begin{pmatrix}
\cosh\beta & \sinh\beta \\
\sinh\beta & \cosh\beta
\end{pmatrix} \begin{pmatrix}
x' \\
ct'
\end{pmatrix}$$
Edit :
$$x'=\gamma \ (x-vt)\Rightarrow \frac{x'}{\gamma}+vt=x$$
Use this in
$$t'=\gamma \left(t-\frac{vx}{c^2}\right)$$
$$\Rightarrow t'=\gamma \left( t-\frac{v}{c^2}\left(\frac{x'}{\gamma}+vt\right)\right) $$
Solve this for $t$ and you would find
$$t=\gamma \left( t'+\frac{vx'}{c^2}\right)$$
In a similar manner, you can find the other equation for $x$ eliminating $t$.