Skylar P. answered 11/30/21
High School Math Teacher: Patient & Experienced
We can start by defining some variables for how many kg of almonds and peanuts Harry buys:
a = the number of kg of almonds he buys
p = the number of kg of peanuts he buys
Since almonds are $15/kg, the amount that Harry spends on almonds will be 15a.
Since peanuts are $5/kg, the amount that Harry spends on peanuts will be 5p.
We can add the two amounts to find how much he spends in total.
Harry spends 15a + 5p in total, but we are also told in the problem that he spends $75. So 15a + 5p = 75.
For the second part, we want to know what happens if Harry only buys almonds. This means that he does not buy any peanuts (he buys 0kg of peanuts), so we can say that p = 0.
15a + 5p = 75
15a + 5•0 = 75
15a = 75
a = 5
Harry can buy 5kg of almonds if he does not buy any peanuts.