A pineapple costs Rs. 7 each. A watermelon costs Rs. 5 each. X spends Rs. 38 on these fruits. The number of pineapples purchased is
A
2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
4
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
Data inadequate
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is B4 Let the number of pineapples and watermelons be x and y respectively. Then, 7x+5y=38 or 5y=(38−7x) or y=38−7x5. Clearly, y is a whole number, only when (38−7x) is divisible by 5. This happens when x=4.