Hi, Em,
Take what we know and try to get at least two equations from that information. We need as many equations as we have unknowns, which is two: the numbers of Large(L) and Small(S) frames.
We can relate the total amount spent ($144) to these two unknowns by stating that:
$144 = L*18 + S*6, where the numbers of each frame size are multiplied by their prices per frame of $18 and $6 for Large and Small.
We also know that a total of 18 frames were bought. That provides a second equation:
L + S = 18
I'll rewrite this as L = 18 - S and then substitute for L in the first equation:
144 = 18(18 - S) + 6S
144 = 324 - 18S + 6S
-180 = -12S
so then
S = 15 If S = 15, then L must be 3.
Check the quantities by using them in the first equation and see if the total bill adds to $144, which it does.
= 18*3 + 15*6 = 54 90 = $144
Always look for equations that tie together some elements of the problem in differing expressions. By rearranging and substituting, one can eventually arrive at a solution that involves just one of the unknowns. That solution can be used to find other unknowns, like we've done here.
I hope this helps,
Bob