How to find the x and y intercept from an equation