Ok, we need write an equation to predict the value of Car A and Car B at the end of r years, so we are going to use the data provided:
Car A value(1 years)=30000*0.8-2000=24000-2000=22000
Car A value(2 years)=22000-2000=20000
Car A value(3 years)=20000-2000=18000
So, if with this data we can predict the following:
Car A value(r years)=24000-(2000*r) (For r greater than zero)