# Examples of Two Points Form Equation of Line

Example 1:
A milkman can sell 650 liters of milk at Dollars 3.15 per liter and 800 liters of milk at Dollars 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 Dollars 2.50 per liter.
Solution:
Let $x$ be the number of liters of sold milk and $y$ be the per liter price. 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 sale price and the milk sold is a straight line, so we find the equation of 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 equation of a straight line

In order to fine the number of liters of milk that the milkman can sell at Dollars$2.50$, put $y = 2.50$ in the above equation, we get

This result shows that the milkman can sell 1301 liters of milk at Dollars 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 two point form of equation of straight line, we get

Which is the required equation of straight line.