The number of solutions of the equation 2x + y = 40 where both x and y

The number of solutions of the equation 2x + y = 40 where both x and y are positive integers and x ≤ y is:

  1. 7
  2. 13
  3. 14
  4. 18

Answer

y = 40 - 2x

If x = 1, y = 38

If x = 2, y = 36

The pattern continues till x = 13.

The correct option is B.