# Examples of the Two Points Form of the Equation of a Line

Example 1:
A milkman can sell 650 liters of milk at $3.15 per liter and 800 liters of milk at$3.00 per liter. Assuming the graph of the sale price and the milk sold to be a straight line, find the number of liters of milk that the milkman can sell at $2.50 per liter. Solution: Let $x$ be the number of liters of milk sold and $y$ be the price per liter. The given information can be written in the form of points $\left( {650,3.15} \right)$ and $\left( {800,3.00} \right)$. Since the graph of the sale price and the milk sold is a straight line, we find the equation of a straight line through the points $\left( {650,3.15} \right) = \left( {{x_1},{y_1}} \right)$ and $\left( {800,3.00} \right) = \left( {{x_2},{y_2}} \right)$ as follows: Using the two points form of the equation of a straight line In order to find the number of liters of milk that the milkman can sell at $2.50$, we put $y = 2.50$ in the above equation, and we get This result shows that the milkman can sell 1301 liters of milk at$2.50 per liter.

Example 2:
Find the equation of straight line passing through the points $A\left( {0,8} \right)$ and $B\left( {2,3} \right)$.

Consider the points $A\left( {0,8} \right) = \left( {{x_1},{y_1}} \right)$ and $B\left( {2,3} \right) = \left( {{x_2},{y_2}} \right)$. Now using these points in the two point form of the equation of straight line, we get

This is the required equation of a straight line.