I am trying to plot two different linear equations functions and the sum of the two together. However, I would like to have one of the lines to start from zero when x=2 instead of when x=0. The resultant linear plot of the sum of the two functions that I am seeking should be equal to the function (y) until function (y1) starts at 2 and it would then decrease and become negative (since y1 decreases at a higher rate).
I hope it is clear enough my expalnation of what I am trying to do.
This is the code I have used.
Thank you in advance