{
  "tool": "matric-nqf4.maths_simultaneous",
  "name": "Simultaneous linear/quadratic system (CDU-GEN-NSC-400)",
  "answers": "Where the line y = mx + k meets the parabola y = x² + px + q — equate, solve, substitute back.",
  "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 M4 (offline reconstruction); equate the two expressions for y and solve the quadratic",
  "endpoint": "/faculty/matric-nqf4/maths_simultaneous",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "p",
      "q",
      "m",
      "k"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "p": {
        "type": "number",
        "description": "parabola coefficient of x",
        "minimum": -100,
        "maximum": 100
      },
      "q": {
        "type": "number",
        "description": "parabola constant",
        "minimum": -1000,
        "maximum": 1000
      },
      "m": {
        "type": "number",
        "description": "line gradient",
        "minimum": -100,
        "maximum": 100
      },
      "k": {
        "type": "number",
        "description": "line intercept",
        "minimum": -1000,
        "maximum": 1000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "x1",
      "y1",
      "x2",
      "y2"
    ],
    "properties": {
      "x1": {
        "type": "number",
        "description": "smaller x of intersection"
      },
      "y1": {
        "type": "number",
        "description": "its y"
      },
      "x2": {
        "type": "number",
        "description": "larger x of intersection"
      },
      "y2": {
        "type": "number",
        "description": "its y"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "p": -3,
    "q": 2,
    "m": 2,
    "k": -4
  }
}