You can
put this solution on YOUR website!Pardon my rant, but Economics puts Price, the independent variable, on the y-axis and Demand, the dependent variable, on the x-axis, which is the reverse of mathematics. I suppose they did not know math when they settled on this arrangement. (smile)
.
x = qty
y = price =p
.
They sell 42 @ $20, which can be used to define the point: (42,20)
They sell 52 @ $10, which can be used to define the point: (52,10)
.
m = slope
m = (p - p
1) / (x - x
1)
m = (20-10)/(42-52)
m = 10/-10
m = -1
.
p= -1*x + b
.
Use one of the points to find 'b'.
.
20 = -1*42 + b
.
62 = b
p-intercept = (0,62)
.
p = -x + 62
.