Caroline accepted a new job at a company with a contract guaranteeing annual raises. Caroline will get a raise of $3000 every year and had a starting salary of $55000. Make a table of values and then write an equation for S, in terms of n, representing Caroline's salary after working n years for the company .

n | S

--------------
0 | 55000
1 | 58000
2 | 61000
3 | 64000
4 | 67000
5 | 70000
6 | 73000

Based on the given pattern, it can be observed that Caroline's salary after working n years can be represented by the equation:

S = 55000 + 3000n