Show how to solve scenario based querywith steps
Answer: The customer purchased 6 apples and 4 bananas.
Step-by-step solution
Step 1: Define variables and form the system of linear equations
Let represent the number of apples and represent the number of bananas. Since the total fruit count is , we have . The total cost equation is given by .
Step 2: Solve for x by eliminating y
Subtract the first equation from the second equation to eliminate the variable . This simplifies directly to , meaning apples were purchased.
Step 3: Substitute x to find y
Substitute into the first equation . Subtracting from both sides gives , which is the number of bananas.