Graphing using X and Y intercepts