An oil painting is worth $400. Its value increases by 7% each year compounded annually.

What is the value of the painting after 6 years (using the formula A=P(1 + i)^n

so, did you use the formula?