The interest is given by:
[tex]I=Prt\text{ }[/tex]where P is the principal, r is the interest rate in decimal form and t is the time.
In this case the principal is $800, the interest rate is 0.05 and the time is 0.5 years (six months is half a year), then the interest is:
[tex]\begin{gathered} I=(800)(0.05)(0.5) \\ I=20 \end{gathered}[/tex]Therefore the interest gained is $20