Over two years, compound interest earns everything simple interest does plus interest on the first year's interest. That extra is .
Treating the difference as the whole interest and using the SI formula on it
Principal = difference ÷ (for 2 years, compounded yearly).