Given:
In company A, starting salary is $80,000.
The yearly increment is $800.
So,
80,000+800=80,800
80,800+800=81,600
81,600+800=82,400
82,400+800=83,200
83,200+800=84,000
So, at the 5 year, she will get $84,000
In company B,
The initial salary is $65000 with a 5% increase each year.
So,
[tex]\begin{gathered} 65000\times\frac{105}{100}=68250 \\ 68250\times\frac{105}{100}=71662.5 \\ 71662.5\times\frac{105}{100}=75245.625 \\ 75245.625\times\frac{105}{100}=79007.906 \\ 79007.906\times\times\frac{105}{100}=82958.30 \end{gathered}[/tex]
In the 5th year, she will get $82,958.30.
If Rita is working at a company only for 5 years, then she would choose company A. Because she will get salary in company A more than company B.
But, if she works for more than 5 years, she will get a salary in company B more than company A.