Problema Solution

A woman paid $2.25 for some apples, bananas, and pears. The apples cost $.10 each, the pears cost $.20 each, and the bananas cost $.25 each. The number of apples was equal to the number of pears and bananas combined. How many of each did she buy?

Answer provided by our tutors

let


a = the number of apples, a>0


b = the number of bananas, b>0


p = the number of pears, p?


a,b and p are integer


0.10a + 0.20b + 0.25p = 2.25 divide by 0.05


2a + 4b + 5p = 45


the number of apples was equal to the number of pears and bananas combined:


a = p + b


plug a = p + b into 2a + 4b + 5p = 45:


2(p + b) + 4b + 5p = 45


6b + 7p = 45


b = (45 - 7p)/6


for p = 3


b = (45 - 3*7)/6


b = 4 bananas


a = 3 + 4


a = 7 apples


the solutions is: 7 apples, 4 bananas and 3 pears.