Writing equations with given points