A pineapple costs Rs. 7 each. A watermelon costs Rs. 5 each. X spends ...
Given:
Cost of one pineapple = Rs. 7
Cost of one watermelon = Rs. 5
Total cost of fruits = Rs. 38
Let's assume X bought p pineapples and w watermelons.
Then we can write two equations based on the given information:
p * 7 + w * 5 = 38 (total cost equation)
p + w = ? (number of fruits equation)
We need to find the value of p which represents the number of pineapples X bought.
Simplifying the total cost equation:
7p + 5w = 38
We can see that both 7 and 5 are odd numbers. So if p is even, then w must be odd, and if p is odd, then w must be even. Let's try out some values:
p = 1, w = 6
7(1) + 5(6) = 37 (not equal to 38)
p = 2, w = 5
7(2) + 5(5) = 39 (not equal to 38)
p = 3, w = 4
7(3) + 5(4) = 38 (equal to 38)
So X bought 3 pineapples and 4 watermelons. Therefore, the correct answer is option C (4).
A pineapple costs Rs. 7 each. A watermelon costs Rs. 5 each. X spends ...
5x +7y=38
now put integer value in x and if y is also integer then that's solution x=2 ,y=4 that's the answer