For the first 3 years, the principal or amount deposited was $4000
It was compunded semiannually for the first 3 years
We would apply the formula for determining compound interest which is expressed as

A = amount after t years
P = principal
t = number of years
r = interest rate
n = periodic interval at which the principal was compounded
Therefore, for the first 3 years,
t = 3 years
P = $4000
r = 8% = 8/100 = 0.08
n = 2(two times in a year)
Therefore,

At the begining of the 4th year, $55000 was deposited. The new principal would be
55000 + 5061.27 = $60061.27
The number of years between the 4th and the 5th year is one. Thus, t = 1 year
Therefore

The balance in the account after 5 years is $64962.27