All Exams Test series for 1 year @ ₹349 only
Question

A lady bought some apples, each costing Rs. 25, and some bananas each costing Rs 6, for a total of Rs. 378. In how many ways could she have chosen the numbers of apples and bananas?

The correct answer is
2

The problem asks for the number of ways a lady can choose a quantity of apples and bananas, given their individual costs and the total amount spent. This can be modeled using a linear Diophantine equation.

Mathematical Formulation

Let A be the number of apples and B be the number of bananas purchased.

The cost of apples is Rs. 25 each, and the cost of bananas is Rs. 6 each.

The total cost is Rs. 378.

The equation representing the total cost is:

$ 25A + 6B = 378 $

We need to find the number of pairs of non-negative integers $(A, B)$ that satisfy this equation. Often, "some" implies a positive quantity, so we will look for solutions where $A > 0$ and $B > 0$.

Finding Integer Solutions

We need to find integer solutions for $A$ and $B$. First, let's find one particular solution.

Rearranging the equation:

$ 25A = 378 - 6B $

This shows that $378 - 6B$ must be divisible by 25.

We can test values for $B$ or use modular arithmetic. Let's find the remainder when 378 is divided by 6:

$ 378 \div 6 = 63 $

So, $378$ is a multiple of 6. This means $25A$ must also be a multiple of 6.

Since 25 and 6 are coprime ($gcd(25, 6) = 1$), $A$ must be a multiple of 6.

Let's test multiples of 6 for $A$ starting from a value that makes $25A$ less than 378.

  • If $A = 6$: $25(6) + 6B = 378 \implies 150 + 6B = 378 \implies 6B = 228 \implies B = 38$. This gives the solution $(A, B) = (6, 38)$.
  • If $A = 12$: $25(12) + 6B = 378 \implies 300 + 6B = 378 \implies 6B = 78 \implies B = 13$. This gives the solution $(A, B) = (12, 13)$.
  • If $A = 18$: $25(18) = 450$, which is greater than 378. So, $A$ cannot be 18 or larger.

We can also find the general solution. From $25A + 6B = 378$, a particular solution is $(A_0, B_0) = (12, 13)$.

The general solution is:

$ A = 12 + \frac{6}{gcd(25, 6)} t = 12 + 6t $ $ B = 13 - \frac{25}{gcd(25, 6)} t = 13 - 25t $

where $t$ is an integer.

Applying Constraints

We assume the lady bought a positive number of apples and bananas, so $A > 0$ and $B > 0$.

  • Constraint $A > 0$:
  • $ 12 + 6t > 0 \implies 6t > -12 \implies t > -2 $
  • Constraint $B > 0$:
  • $ 13 - 25t > 0 \implies 13 > 25t \implies t < \frac{13}{25} $

Combining the constraints, we need integers $t$ such that $-2 < t < \frac{13}{25}$.

The integers that satisfy this condition are $t = -1$ and $t = 0$.

Counting the Ways

The possible integer values for $t$ are -1 and 0. Each value corresponds to a valid way of choosing apples and bananas.

  • For $t = -1$: $A = 12 + 6(-1) = 6$, $B = 13 - 25(-1) = 38$. Pair: $(6, 38)$.
  • For $t = 0$: $A = 12 + 6(0) = 12$, $B = 13 - 25(0) = 13$. Pair: $(12, 13)$.

There are 2 pairs of $(A, B)$ that satisfy the condition $A > 0$ and $B > 0$. Therefore, there are 2 ways she could have chosen the numbers of apples and bananas.

Was this answer helpful?

Important Questions from Number System (Notes)

  1. Which number system uses only digits 0 and 1?
  2. The sum of the digits of a 2-digit number is 12. When the digits of the number are interchanged, the number becomes 15 more than twice the original number. The original number is:
  3. What is the least number which, when divided by 7, 12 and 15 leaves 1 as the remainder in each case?
  4. If $\frac{1}{9!} + \frac{1}{10!} = \frac{x}{11!}$, then the value of x is:
  5. What will be the output, if we compute the 9's complement of the decimal number 782.54?
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App