By solving a linear equation, we conclude that you bought 4 buns and 5 cakes.
<h3>
How many of each did I buy?</h3>
We will define the two variables:
- x = number of buns bought.
- y = number of cakes bought.
We know that you spent exactly £4.35, then we only need to solve the linear equation:
x*0.40 + y*0.55 = 4.35
We need to solve that equation for x and y, such that the values of x and y can only be positive whole numbers.
We can rewrite the equation as:
y*0.55 = 4.35 - x*0.40
y = (4.35 - x*0.40)/0.55
Now we only need to evaluate it in different values of x, and see for which value of x, the outcome y is also a whole number.
We will see that for x = 4, we have:
y = (4.35 - 4*0.40)/0.55 = 5
So you bought 4 buns and 5 cakes.
If you want to learn more about linear equations:
brainly.com/question/1884491
#SPJ1