The table below relates the number of rats in a population to time in weeks. Use the table to write a linear equation with w\displaystyle {w} as the input variable.

w, number of weeksP(w), number of rats
08
115
222
329
115
543


P(w)=\displaystyle {P}{\left({w}\right)}=