Explanation:
Formula for compound interest is given by

Where
A is the amount at the end of the period
P is the principal
R is the rate
n is the period
The interest = A - P
From the question
P = $ 3200
n = 3 years
R = 40%
So we have

A = $ 8780.80
The amount is $ 8780.80
The interest is
$ 8780.80 - $3200
= $ 5580.80
Hope this helps you