You don't need to do with it a function.
Since they lines are straight, you need 2 points on it to draw the line. Just pick two x values and calculate the y value. Put the two pairs in a table, and that will make your line.
It's not the best way to do it, but it wll work.
Try searching google for an equation grapher if you want ot do it seriously. There must be a free one out there.