Answer:
Check the explanation
Step-by-step explanation:
Use the below R Code
Sales=c(245,138,352,322,228,275,560,366)
Advertising=c(16.5,18,22.3,17.4,19,20,32,18.6)
Commission=c(10.5,2,4,3.5,4.5,1.8,9,8.5)
data=as.data.frame(cbind(Sales,Advertising,Commission))
model1=lm(Sales~Advertising+Commission, data = data)
dat2=data.frame(Advertising=25,Commission=8)
predict(model1,dat2)
The predicted value of Sales for 25000 dollar on Advertising and 8% on Commission is 424685 dollars approximately (rounded to 0 decimal places)