Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
A slight comment is, over all $x_i$ which don't satisfy $f(x_i)=f(x_1), g(x_i)=g(x_1)$, so that we don't have the exact same line intersecting at an infinite number of points.