p = g - 50
The profit in this equation, p, is similar to the y value and the g in this equation is equal to the x value. Because the profit per glass sold is one, you can just leave it out end up with g - 50 because you are deducting your profit from your expense.