Let's call 'n' the number of four-person tables and 'm' the number of five-person tables. We just need to figure out some combination of n and m that (1) adds up to 19, and (2) seats a total of 84 people. So, we have two requirements, and therefore, two equations:
Equation 1: n + m = 19
Equation 2: 4*n + 5*m = 84
Two unknowns, two equations means you can solve for each of the unknowns. Just follow this recipe:
Step 1: Choose one of your two equations and move all but one variable to the right side of the equation, which we can call a new equation just for ease of discussion:
Equation 3 (based on Equation 1): n = 19 - m
(Equation 3 is really just a rearrangement of Equation 1, but it's easier to think of it as a new equation)
Step 2: The "new equation" defines one of the variables, so we can use that definition in the other original equation to create another new equation:
Equation 4 (based on Equations 2 & 3):
4*n + 5*m = 84 ⇒ 4*(19 - m) + 5*m = 84 (since we know from Eq. 3 that n = 19 - m)
4*19 - 4*m + 5*m = 84 ⇒ 76 + m = 84
Step 3: Solve Equation 4 for the one variable it contains.
m = 84 - 76 = 8
Step 4: Choose either of the original equations, substitute in the value of the variable we just computed, and solve for the other variable.
(Substituting m = 8 into Equation 1):
n + m = 19 ⇒ n + 8 = 19 ⇒ n = 19 - 8 ⇒ n = 11
Step 5: Check the math using the other original equation.
4*n + 5*m = 84 ? 4*11 + 5*8 = 44 + 40 = 84 ?
For more advanced questions involving more than two variables, simply repeat steps 1 and 2 until you can do Step 3. (This will make sense when you run into an actual problem. If it doesn't just send me a message!)
Ashley W.
06/17/14