Writing Equations given two points