
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
B. 3
C. 4
D. Data inadequate
Answer
579.9k+ views
Hint: Cost of a pineapple is Rs. 7 and cost of a watermelon is Rs. 5. X spends Rs. 38 on these fruits. The cost of ‘m’ pineapples is Rs. 7m and the cost of ‘n’ watermelons is Rs. 5n. The total amount on these fruits is $ 7m + 5n = 38 $ . Solve the equation to get the no. of pineapples ‘X’ purchased.
Complete step-by-step answer:
We are given that the cost of each pineapple is 7 and the cost of each watermelon is 5.
X spends 38 rupees to buy both these fruits. We have to find the no. of pineapples ‘X’ purchased.
Let the no. of pineapples ‘X’ purchased is ‘m’ and the no. of watermelons ‘X’ purchased is ‘n’
The total cost X spent is $ 7m + 5n $ rupees
$
\therefore 7m + 5n = 38 \\
\to 7m = 38 - 5n \\
\to m = \dfrac{{38 - 5n}}{7} \\
$
The no. of pineapples purchased should be a whole number. So 38-5n should be a multiple of 7 to get a whole number.
Only when n is 2, the no. of pineapples purchased will be a whole number. Therefore n=2.
The value of m is
$
m = \dfrac{{38 - 5\left( 2 \right)}}{7} \\
m = \dfrac{{28}}{7} \\
m = 4 \\
$
The no. of pineapples purchased is 4 and the no. of watermelons purchased is 2.
So, the correct answer is “Option C”.
Note: We solved the problem by trial and error method. Trial and error is a fundamental method of problem-solving. It is implemented by repeated, varied attempts which are continued until success, or until the solver stops trying. An efficient number of trials must be done to avoid time and energy wastage.
Complete step-by-step answer:
We are given that the cost of each pineapple is 7 and the cost of each watermelon is 5.
X spends 38 rupees to buy both these fruits. We have to find the no. of pineapples ‘X’ purchased.
Let the no. of pineapples ‘X’ purchased is ‘m’ and the no. of watermelons ‘X’ purchased is ‘n’
The total cost X spent is $ 7m + 5n $ rupees
$
\therefore 7m + 5n = 38 \\
\to 7m = 38 - 5n \\
\to m = \dfrac{{38 - 5n}}{7} \\
$
The no. of pineapples purchased should be a whole number. So 38-5n should be a multiple of 7 to get a whole number.
Only when n is 2, the no. of pineapples purchased will be a whole number. Therefore n=2.
The value of m is
$
m = \dfrac{{38 - 5\left( 2 \right)}}{7} \\
m = \dfrac{{28}}{7} \\
m = 4 \\
$
The no. of pineapples purchased is 4 and the no. of watermelons purchased is 2.
So, the correct answer is “Option C”.
Note: We solved the problem by trial and error method. Trial and error is a fundamental method of problem-solving. It is implemented by repeated, varied attempts which are continued until success, or until the solver stops trying. An efficient number of trials must be done to avoid time and energy wastage.
Recently Updated Pages
The number of solutions in x in 02pi for which sqrt class 12 maths CBSE

Write any two methods of preparation of phenol Give class 12 chemistry CBSE

Differentiate between action potential and resting class 12 biology CBSE

Two plane mirrors arranged at right angles to each class 12 physics CBSE

Which of the following molecules is are chiral A I class 12 chemistry CBSE

Name different types of neurons and give one function class 12 biology CBSE

Trending doubts
What is BLO What is the full form of BLO class 8 social science CBSE

What are the 12 elements of nature class 8 chemistry CBSE

Full form of STD, ISD and PCO

What are gulf countries and why they are called Gulf class 8 social science CBSE

Citizens of India can vote at the age of A 18 years class 8 social science CBSE

What is the difference between rai and mustard see class 8 biology CBSE

