Adam bought a total of 50 fruits consisting of apples, oranges and pineapples. The apples, oranges and pineapples cost $0.80, $0.60 and $1.20 each respectively. The total cost of all the fruits he bought is $40. If the cost of apples is doubled and that of oranges is halved, then the total cost of all the fruits that he bought would be $53. Find the number of each type of fruit bought by Adam.

Work through it with AI →

It won't just hand you the answer — it asks where you're stuck.How the checker works

Worked solution

1

1. Define variables and formulate the system of equations.

Let xx, yy, and zz be the number of apples, oranges, and pineapples respectively.

Total fruits:
x+y+z=50— (1)x + y + z = 50 \quad \text{--- (1)}

Initial total cost:
0.80x+0.60y+1.20z=40— (2)0.80x + 0.60y + 1.20z = 40 \quad \text{--- (2)}

Adjusted total cost (apples doubled, oranges halved):
1.60x+0.30y+1.20z=53— (3)1.60x + 0.30y + 1.20z = 53 \quad \text{--- (3)}

2. Eliminate one variable ($z$) using equations (2) and (3).

Subtract (2) from (3) to eliminate zz:
(1.60x+0.30y+1.20z)−(0.80x+0.60y+1.20z)=53−40(1.60x + 0.30y + 1.20z) - (0.80x + 0.60y + 1.20z) = 53 - 40
0.80x−0.30y=130.80x - 0.30y = 13
Multiply by 10 to remove decimals:
8x−3y=130— (4)8x - 3y = 130 \quad \text{--- (4)}

3. Eliminate the same variable ($z$) using equation (1) to form another equation in $x$ and $y$.

From (1), we have z=50−x−yz = 50 - x - y.
Substitute this into (2):
0.80x+0.60y+1.20(50−x−y)=400.80x + 0.60y + 1.20(50 - x - y) = 40
0.80x+0.60y+60−1.20x−1.20y=400.80x + 0.60y + 60 - 1.20x - 1.20y = 40
−0.40x−0.60y=−20-0.40x - 0.60y = -20
Divide by −0.20-0.20 to simplify:
2x+3y=100— (5)2x + 3y = 100 \quad \text{--- (5)}

4. Solve the 2-variable system to find $x$, $y$, and $z$.

Add equation (4) and equation (5):
(8x−3y)+(2x+3y)=130+100(8x - 3y) + (2x + 3y) = 130 + 100
10x=230  ⟹  x=2310x = 230 \implies x = 23

Substitute x=23x = 23 into (5):
2(23)+3y=1002(23) + 3y = 100
46+3y=10046 + 3y = 100
3y=54  ⟹  y=183y = 54 \implies y = 18

Substitute x=23x = 23 and y=18y = 18 into (1):
23+18+z=5023 + 18 + z = 50
41+z=50  ⟹  z=941 + z = 50 \implies z = 9

Answer

Adam bought 23 apples, 18 oranges, and 9 pineapples.

AI analysis — may contain mistakes.

Worked this one out on paper? Snap your steps and Gigle's AI math checker will circle the step where it went wrong.

More questions on this topic

  1. 1It is given that f(x)=ax3+bx2+cx+df(x)=ax^3+bx^2+cx+d, where aa, bb, cc and dd are constants. The curve CC with equation y=f(x)y=f(x)…
  2. 2Find the exact solution of the inequality 2x+1x2−1≤1.\frac{2x+1}{x^2-1} \le 1. A curve GG has equation ay2+bx3+cx=2ay^2 + bx^3 + cx = 2, w…
  3. 3A sequence of numbers u1,u2,u3,…u_1, u_2, u_3, \dots has a sum SnS_n where Sn=∑r=1nurS_n = \sum_{r=1}^{n} u_r. It is given that Sn=An2(n+1)−BnS_n = An^2(n + 1) - Bn…
  4. 4A curve CC has equation y=ax+bx2+cy = \frac{a}{x} + bx^2 + c, where aa, bb and cc are constants. It is given that CC passes…
  5. 5A random variable XX has the probability distribution given in the following table. | xx | 1 | 4 | 6 | 8 | |---|---|--…