the formula for compound interest is the following:

where is the amount of money we have after time , is the principal amount, that is, the original amount we invested, is the rate of interest written as a decimal (so for 7% it would be 0.07), is the number of interest periods, and is the time we invested it for

so just use that formula and you will get the right answer