Write a quadratic function from its x-intercepts and another point