I'm trying to find out the linear supply function and this is what I have so far, which may be all wrong.

(60, 40) and (100, 60)

M = 60 – 40/ 100 – 60 = 20/40

S (x) – 60 = 20/40 (x – 60)

Supply: For a new diet pill, 60 pills will be supplied at a price of $40, while 100 pills will be supplied at a price of $60. Write a linear supply function for this product.