Answer and Explanation:
Regression model is basically the relationship between an independent (X) and dependent variable (Y). It may include several independent variables but there is only one dependent variable which is the subject. For example: A real estate agent wants to find out what prices he/she wants to charge for houses in a particular neighborhood. Price is the dependent variable whereas number of rooms in a house and size of the house could be the independent variables.
In the question we see that the candy bar manufacturer wants to find out if the sales are influenced by price of their product. Therefore, sales is the dependent variable and price is the independent variable.
Y = a + bP
Y = Price
a = constant
b = coefficient of price
P= Price