Price of one banana is Rs. 8 and price of an orange is Rs. 7. Aslam spent Rs. 30 to purchase these fruits. How many bananas did he purchase?

Price of one banana is Rs. 8 and price of an orange is Rs. 7. Aslam spent Rs. 30 to purchase these fruits. How many bananas did he purchase?

Explanation

Let's assume Aslam purchased x bananas and y oranges.

The total cost is 8x + 7y = 30.

We need to find a combination of x and y that satisfies the equation.

If x = 2 and y = 2:

8(2) + 7(2) = 16 + 14 = 30

This combination works, so Aslam purchased 2 bananas and 2 oranges.