Question 1026148
Let s be the number of sweets you want to buy.


If s < 10, then you get no free sweets.
If s >= 10, then you get two free sweets.


f(s) = 0 if s < 10
f(s) = 2 if s >= 10 (this should be written as a piecewise function)