x and y intercept of a quadratic function with steps