So I have this math problem

[tex]B = 500(1+r)^3+200(1+r)^2+600(1+r)[/tex]

How do I solve for the annual interest after three years? Do I plug in 3 for r?