Lesson eLearning

A jug holds 5 liters and a mug holds 3 liters. A bottle holds 29 liters. How many ways can the bottle be filled exactly using jugs and mugs?

hard 3 marks Class 3 · Mathematics · Jugs and Mugs
Answer
2 ways

The correct answer is 2 ways — These are the only integer solutions, so there are 2 ways.

Step-by-step solution

  1. Let be the number of jugs and the number of mugs.
  2. Set up the equation for the total volume: .
  3. Express in terms of : .
  4. For to be an integer, must be divisible by 5.
  5. Solve the congruence , i.e. .
  6. Multiply both sides by the inverse of 3 modulo 5, which is 2: .
  7. Thus for some non‑negative integer .
  8. The condition (since ) restricts to or .
  9. For , .
  10. For , .
  11. These are the only integer solutions, so there are 2 ways.
Common mistake: Ignoring modulus conditions or negative solutions

Concept tested: Linear Diophantine equations

Published · How this solution was prepared and checked

← All Jugs and Mugs questions