10% of £80 = 20% of £ is an equation.

.1*80 = .2*x

.1*80/.2 = x
8/.2 = x
40 = x

Your boy did good . Teacher is wrong.