Here, we have a piece wise function to define
We start with the horizontal line from the origin
Generally, the equation of a straight line is;
where m is the slope of the line and b is the y-intercept
As we can see, the line starts from the origin and that means the line has a y-intercept equal to zero
Now, we can see that; y = mx is a probable equation for the line
So to get the value of m, we need two points in which we can apply the slope equation
The two points lying on the line that we want to select are (0,0) and (5,25)
By this, we have the slope of the equation as;
So, we have the first equation in the piece-wise function as;
Now, we have the domain as;
For the y-intercept, we make a substitution;
So, we have the equation for the second line as;
We have the domain as;
What this mean is that customers who by up to 5 pounds pay $5 per pound
Customers who buy more than 5 pounds pay $20 for the first 5 pounds. They pay $4 per pound for each pound over 5 pounds