Final answer:
To determine the number of pears and melons Elijah bought, we create a system of equations based on the total number and cost of the fruits. By solving the equations, we find that Elijah bought 5 pears and 3 melons.
Step-by-step explanation:
To solve the problem of determining how many pears and melons Elijah bought, we can use a system of equations based on the given information. Let's define p as the number of pears and m as the number of melons. We have two pieces of information that will translate into two equations:
- The total number of fruits is 8, so p + m = 8.
- The total amount spent is $19, so 2p + 3m = 19 (since pears cost $2 each and melons cost $3 each).
Now, we will solve the system of equations step-by-step:
- First, we express m in terms of p from the first equation: m = 8 - p.
- Next, we substitute m in the second equation: 2p + 3(8 - p) = 19.
- Simplifying, we get: 2p + 24 - 3p = 19.
- Combining like terms gives us: -p = -5.
- Therefore, p = 5, meaning Elijah bought 5 pears.
- To find the number of melons, we substitute p back into the equation for m: m = 8 - 5 = 3.
Elijah bought 5 pears and 3 melons.