Sounds like a geometric progression. Initial value is $30,000; p is the annual increase, a percent, but expressed as a decimal fraction between 0 and 1; n is the number of years.
Total salary = $30,000 (1+p)^n, or, in shorthand and following the wording of this problem,
Total salary = $30,000 x^n, where x = 1 + p