The question states that this point is on segment , with the distance between this point and being the distance between to .
It could be shown (using a pair of similar right triangles) that the ratio applies not only to the (sloped) distance between this point and , but to the vertical distance as well.
The vertical distance between this point and would also be the vertical distance between and .
The vertical distance between and is the difference between their coordinates, .
The vertical distance between this point and would be of the vertical distance between and , .
Since is above , any point on the segment between these two points would also be above . Add the vertical distance between and the requested point to the coordinate of to find the coordinate of the requested point: .
Let's say that the price of each normal cookie is n. The equation would then be 7(n - .75)=2.80. Use distributive property, getting 7n - 5.25=2.80. Add 5.25 to each side of the equation, getting 7n=8.05. Divide 7 from both sides of the equation, getting n=1.15.