title: "v2 Smoke — choices + derived"
slug: v2-vars-smoke
code: V2VARS
calculator: scientific
variants_per_problem: 12

problems:
  # choices only
  - stem: "What is {a} times {b}?"
    vars:
      a: { choices: [2, 3, 5, 7] }
      b: { choices: [4, 6, 8, 9] }
    answer: "a * b"

  # range + derived (b = a + 5)
  - stem: "Solve for x:  x + {a} = {b}"
    vars:
      a: [1, 9]
      b: { expr: "a + 5" }
    answer: "b - a"

  # all three kinds; derived from both range + choice
  - stem: "Compute:  {coef} * ({x} + {y})"
    vars:
      coef: { choices: [2, 3, 5] }
      x: [1, 6]
      y: { expr: "x * coef" }
    answer: "coef * (x + y)"
