{
  "tool": "matric-nqf4.maths_probability_draws",
  "name": "Probability without replacement (CDU-GEN-NSC-400)",
  "answers": "P(both red) for two draws without replacement from a mixed set of counters.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "CAPS Grade 12 Mathematics, worked reference M16 (offline reconstruction); dependent events multiply along the branch",
  "endpoint": "/faculty/matric-nqf4/maths_probability_draws",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "red",
      "blue",
      "green"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "red": {
        "type": "number",
        "description": "red counters",
        "minimum": 0,
        "maximum": 100000
      },
      "blue": {
        "type": "number",
        "description": "blue counters",
        "minimum": 0,
        "maximum": 100000
      },
      "green": {
        "type": "number",
        "description": "green counters",
        "minimum": 0,
        "maximum": 100000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "pBothRed"
    ],
    "properties": {
      "pBothRed": {
        "type": "number",
        "description": "P(first red and second red)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "red": 5,
    "blue": 3,
    "green": 2
  }
}