Let's define the variables:
- Let xxx = number of books bought online
- Let yyy = number of books bought in the store
We are given:
- Cost of a book online = 18 pesos
- Cost of a book in the store = 220 pesos
- Total books sold = 240
- Total money collected = 49 pesos (This seems suspiciously low given the prices, but we'll proceed with the given numbers.)
Step 1: Set up the equations
- Total books sold:
x+y=240x+y=240x+y=240
- Total money collected:
18x+220y=4918x+220y=4918x+220y=49
Step 2: Solve the system of equations
From the first equation:
y=240−xy=240-xy=240−x
Substitute into the second equation:
18x+220(240−x)=4918x+220(240-x)=4918x+220(240−x)=49
18x+52800−220x=4918x+52800-220x=4918x+52800−220x=49
−202x+52800=49-202x+52800=49−202x+52800=49
−202x=49−52800-202x=49-52800−202x=49−52800
−202x=−52751-202x=-52751−202x=−52751
x=52751202≈261.3x=\frac{52751}{202}\approx 261.3x=20252751≈261.3
This value is greater than 240, which is impossible since x+y=240x+y=240x+y=240.
Conclusion:
The total amount collected (49 pesos) is inconsistent with the prices and the number of books sold. Please double-check the total money collected or the prices. If you provide the correct total revenue, I can help solve the problem accurately.