Solving equations by finding x-intercepts