If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Modeling with linear equations: gym membership & lemonade

Constructing linear equations to solve word problems. Created by Sal Khan.

Want to join the conversation?

  • aqualine ultimate style avatar for user omer saleh
    at Sal mentions break even
    what does that mean?
    (9 votes)
    Default Khan Academy avatar avatar for user
    • male robot hal style avatar for user Enn
      Break even is the point when revenue equals expenses and so there is no profit or loss incurred.
      If the expense amounts to $25 then the break even point is when revenue is $25 also. At this point there will be no loss or profit as 25-25 = 0
      (25 votes)
  • blobby green style avatar for user vishal.pvv
    What is the meaning of break even in the problem??
    (7 votes)
    Default Khan Academy avatar avatar for user
    • male robot hal style avatar for user Enn
      Break even means when the cost or expenses are equal to the revenue earned. That is there is 0 profit or loss incurred.
      Here Bobby and Petra's expense will be $25 so if they also earn a revenue of $25 they will break even.
      (12 votes)
  • aqualine ultimate style avatar for user NRMackay
    In the lemonade stand example doesnt -needing to make $25 to break even (ie to have 0)- mean that the y intercept is -25?
    (4 votes)
    Default Khan Academy avatar avatar for user
    • male robot hal style avatar for user Bollen
      Sal defined y as the revenue (although he worded it ambiguously), meaning the amount of money that goes into their register. Thus he got the equation y=0.45x. Because revenue must equal cost to break even he plugged 25 in for y.

      If y had been defined as profit (how much better off are you than before you started the business, or Revenue - Cost) then the y-intercept would indeed be -25 and the equation would be y=0.45-25. In this case you would be looking for where profit is zero and would plug 0 in for y, resulting in the same answer of 56 cups of lemonade must be sold to break even.
      (10 votes)
  • blobby green style avatar for user Flourhevie Ticod
    help me!1!!ferdie's car uses 15 liters of gasoline to travel 200 kilometers. At that rate, how much gasoline will his car use to travel 300 kilometers
    (3 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Michelle Wagner
    help not looking for answer but help on variable and equation
    A one-cup serving of orange juie contains 3mg les than four times the amount of vitamin C as a one-cup serving of pineapple juice. Servings of the 2 juices contain a total of 122 mg of vitamin C. How many milligrams of vitamin C are in a serving of each type of juice?
    (3 votes)
    Default Khan Academy avatar avatar for user
    • blobby green style avatar for user Rick Raymond
      Which equations can you write from the information given?
      Starting with the easier one, servings of the 2 juices, I get that o + p = 122. Or, orange juice + pineapple juice = 122mg of vitamin C. I just chose o = orange juice and p = pineapple juice. You can pick any variable you like, as long as you can keep them straight and you are consistent.

      Now the tricky one, or confusing one. Orange juice contains 3mg less than 4 times a serving of pineapple juice. When I learned how to do these I found it really helped to substitute an = for certain words in the text. So, I would cross out words like "contains, equals, has" and such then it became easier to see which parts of the word problem were on which side of the equation. So, I get that o = 4p - 3, from that statement.
      Now we have 2 equations for 2 variables and should be able to solve for each. Does that help?
      (5 votes)
  • duskpin ultimate style avatar for user InTheMoonshadow
    The way the question is worded makes it very confusing.
    "At the end of the year" should really be replaced with "after a year"
    (5 votes)
    Default Khan Academy avatar avatar for user
  • leaf red style avatar for user aubrey
    At isn't 9 times 4 = 36, not 35? :)
    (3 votes)
    Default Khan Academy avatar avatar for user
  • orange juice squid orange style avatar for user FishHead
    For the second problem, shouldn't the y-intercept be -25 and the break-even point would be when y (profit) = 0, or the x-int?
    (2 votes)
    Default Khan Academy avatar avatar for user
    • blobby green style avatar for user LogCAD13
      You are completely right, they start at -25 and to break even they should reach y = 0, but the way that khan does represent the same, if you ask me you should start at -25 to represent the problem in the proper way and not just the mathematical way, both ways works well and gives you the same result but in my opinion the best way to see this problem is understanding that they lost 25 dls already
      (3 votes)
  • male robot hal style avatar for user Sun
    At , why we cant sell half a glass?
    (3 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user anjanethsudaw
    The sum of two numbers is 63.if one is twice the other,what are the numbers
    (2 votes)
    Default Khan Academy avatar avatar for user

Video transcript

In this video, I want to do a couple more word problems dealing with graphs of lines. So here we have a gym is offering a deal to new members. Customers can sign up by paying a registration fee of $200 and then a monthly fee of $39. This is registration. How much will this membership cost a member by the end of the year? So let's figure out an equation that determines how much total we will pay. p is equal to the amount that we're going to pay in total for our membership. So no matter how many months we use the gym, just to start using the gym, we have to pay $200 in registration. I'll just write-- everything we'll assume is in dollars --so I'll write $200. And then we're going to have to pay $39 for every month we're there. So then we're going to take the number of months we're there and multiply that times 39. Notice if we stay there 1 month, we'll have to pay 1 month times $39. And we would have already paid the $200 registration fee. So it'll be $239. If we stay 2 months, we pay the $200 registration fee and then we pay 39 times 2 months, which is what? Like 78 or something. So it would be $278. So just to tie this altogether with linear equations and graphs of them, let's graph this relation. Remember the graph of a line can be y is equal to mx plus b. That's one of the forms. So to put this line in this form or this equation in this form, we can just rearrange the 39m and the 200 and you get p is equal to 39m plus 200. So what's the slope and what's the y-intercept? You might get confused and say, hey there's an x there and a y, but now you're doing it with p's and m's. Just remember this is the independent variable and this is the dependent variable. Here this is the independent variable. How many months? You pick a number of months and I'll tell you what the total cost of your membership is going to be. It's the same thing. This is like the x right there. This is like the y just like that. Just using our pattern match, this right here is the-- we could say it's the vertical intercept or the p-intercept or the-- I'm tempted to call it the y-intercept. But we're really intersecting the p-axis instead of the y-axis there. This right here is our slope. So let's graph this function. I won't do it too accurately. I just want to do a hand drawn graph just to give you an idea. We could just stay in the first quadrant. We're not going to stay negative months and the gym is never going to pay us money. So right off the bat, we're going to have to pay the gym $200. $200 for 0 months. Then for every month, we're going to have to spend an extra $39. So the slope is 39. Let's say this is 1 month right there. This is in months. And this axis is price, the p-axis. So this is like the p-intercept or the y-intercept. So after 1 month, how much are we going to have to pay? Well our slope is 39, so if we move 1 month forward, we're going to go up by 39. So this will, right here, that will be 239. If we go another month, it'll be 278. This is kind of a weird labeling of an axis, but I think you get the idea. So the graph of how much it'll cost us as per month will look something like this. So they say, how much will a membership cost by the end of the year? 12 months. We would have to go 2, 3, all the way out to 12 months, which might be here. So then our graph is going to be out here someplace. But we could just figure it out algebraically. At the end of the year, m will be equal to 12. When m is equal to 12, how much is our membership? The price of our membership is going to be our $200 membership fee plus 39 times the number of months, times 12. What's 39 times 12? 2 times 9 is 18. 2 times 3 is 6 plus 1 is 70. I have a 0. 1 times 9 is 9. 1 times 3-- we want to ignore this. 1 times 3 is 3. So we have 8. 7 plus 9 is 16. 1 plus 3 is 4. So the price of our membership is $200 plus 39 times 12, which is $468. So it's equal to $668 at the end of our year. So if you went all the way out to 12, you would have to plot 668 someplace here on our line, if we just kept going out there. Let's do one more of these. Bobby and Petra are running a lemonade stand and they charge $0.45 for each glass of lemonade. In order to break even, they must make $25. How many glasses of lemonade must they sell to break even? So let me just do it with y and x. y is equal to the amount they make. Not max-- the amount they make. Let x is equal to the number of glasses they sell. What is y as a function of x? So y is equal to-- well for every glass they sell, they get $0.45 --so it's equal to $0.45 times the number of glasses. There's not any kind of minimum fee that they need to charge or they don't say any kind of minimum cost that they have to spend to run this place. How much in order to break even for each a glass of lemonade? They need to make $25. So in order to break even, they must make $25. So how many glasses of lemonade do they need to sell? y needs to be equal to $25. How many glasses do they need to sell? Well you just set this equation. You say 0.45x has to be equal to 25. We can divide both sides by 0.45. On the left-hand side, you're just left with an x. You get x is equal to-- What is 25 divided by 0.45? It is equal to-- They would have to sell exactly 55.55 glasses or 56 if I round. 55.5 repeating glasses. But you can't sell half a glass or we're assuming you can't sell half a glass. So the answer to that, they must sell 56 glasses. Because you can't sell half a glass, I'm assuming. So they need to sell 56 glasses to break even. Just to graph this. Once again, we'll hang out in the first quadrant because everything is going to be positive. Every glass they make $0.45. Let's say that they sell-- So this is the number of glasses, x. This is how much they make. Let me go by increments of 5. 5, 10, 15, 20, 25. Actually I need to go by even larger increments to get to the point that we're talking about. Let me go increments of 10. 10, 20, 30, 40, 50, 60. So that's the number of glasses. When they sell 0 glasses, they make $0. That's their y-intercept. y is equal to 0. When they sell 10 glasses, they make $4.50. So this is 4.50. This is 9. Actually let me just do it like this. Let me just mark only the multiples of 9. Let's say 9, 18, 27, 35. When they sell 10 glasses, they're going to make $4.50. 10 times 0.45. That's right there. 20 glasses, they're going to make $9.00. We can keep going there. 40 glasses, they're going to make $18. You see their slope. When you move 10, you're going to have to go up 4.50. This graph is going to look something like that. Should be a straight line. Then if you want to see their break even, their break even has to be $25, which is right about here. Their break even is $25 right around there. Let me draw the line a little bit better than that. The line is going to look like this. If the break even is $25-- it would be right there --you see that they have to sell about 56 glasses. Obviously the way I drew this isn't the super neatly drawn graph, but hopefully it gives you the general idea.