The final value of an investment with compounded interest can be found by using the expression below:

Where A is the final amount, P is the initial amount, r is the interest rate, n is the number of times it is compounded in a year and t is the time elapsed in years.
In this case the interest is compounded semianually, this means that the amount is compounded twice per year. Applying these data on the expression we have:

The interest earned is the difference between the final value and the invested one.

The amount earned in interest at the end of the 5 years was $351.02