{
  "source_prefix": "Nan Hua 2022 P6 Prelim",
  "models": [
    {
      "n": 5,
      "answer": "2 : 5",
      "answer_matches_key": true,
      "working": "Chinese \\(+\\) Indian \\(= 70 + 30 = 100\\). Malay \\(= 40\\). Using equal units of 20: Malay is 2 units, Chinese\\(+\\)Indian is 5 units. Ratio \\(= 2 : 5\\).",
      "spec": {
        "unit_px": 80,
        "bars": [
          {"label": "Malay", "segments": [
              {"u": 1, "text": "20", "fill": "#dbe9ff"},
              {"u": 1, "text": "20", "fill": "#dbe9ff"}],
           "brace": {"text": "40"}},
          {"label": "Chinese + Indian", "segments": [
              {"u": 1, "text": "20", "fill": "#ffe7c2"},
              {"u": 1, "text": "20", "fill": "#ffe7c2"},
              {"u": 1, "text": "20", "fill": "#ffe7c2"},
              {"u": 1, "text": "20", "fill": "#ffe7c2"},
              {"u": 1, "text": "20", "fill": "#ffe7c2"}],
           "brace": {"text": "100"}}
        ]
      }
    },
    {
      "n": 6,
      "answer": "90",
      "answer_matches_key": true,
      "working": "Split the number into 10 equal units of 10%. \\(40\\%\\) (4 units) \\(= 36\\), so 1 unit \\(= 36 \\div 4 = 9\\). The whole number \\(= 10\\) units \\(= 9 \\times 10 = 90\\).",
      "spec": {
        "unit_px": 70,
        "bars": [
          {"label": "Number", "segments": [
              {"u": 1, "fill": "#dbe9ff"},
              {"u": 1, "fill": "#dbe9ff"},
              {"u": 1, "fill": "#dbe9ff"},
              {"u": 1, "fill": "#dbe9ff"},
              {"u": 1, "fill": "#eef3fb"},
              {"u": 1, "fill": "#eef3fb"},
              {"u": 1, "fill": "#eef3fb"},
              {"u": 1, "fill": "#eef3fb"},
              {"u": 1, "fill": "#eef3fb"},
              {"u": 1, "fill": "#eef3fb"}],
           "brace": {"text": "? (100%)"}}
        ],
        "total": {"text": "40% = 36", "bars": [0]}
      }
    },
    {
      "n": 7,
      "answer": "20",
      "answer_matches_key": true,
      "working": "January \\(= \\$40\\) (5 units of \\$8). February \\(= \\$32\\) (4 units). Decrease \\(= 1\\) unit \\(= \\$8\\). Percentage decrease \\(= \\dfrac{8}{40} \\times 100\\% = 20\\%\\).",
      "spec": {
        "unit_px": 70,
        "bars": [
          {"label": "January", "segments": [
              {"u": 1, "text": "$8", "fill": "#dbe9ff"},
              {"u": 1, "text": "$8", "fill": "#dbe9ff"},
              {"u": 1, "text": "$8", "fill": "#dbe9ff"},
              {"u": 1, "text": "$8", "fill": "#dbe9ff"},
              {"u": 1, "text": "$8", "fill": "#ffd2d2"}],
           "brace": {"text": "$40"}},
          {"label": "February", "segments": [
              {"u": 1, "text": "$8", "fill": "#dbe9ff"},
              {"u": 1, "text": "$8", "fill": "#dbe9ff"},
              {"u": 1, "text": "$8", "fill": "#dbe9ff"},
              {"u": 1, "text": "$8", "fill": "#dbe9ff"}],
           "brace": {"text": "$32"}}
        ]
      }
    },
    {
      "n": 13,
      "answer": "\\(\\dfrac{1}{10}\\) ℓ",
      "answer_matches_key": true,
      "working": "Total punch \\(= \\dfrac{1}{10} + \\dfrac{4}{5} = \\dfrac{1}{10} + \\dfrac{8}{10} = \\dfrac{9}{10}\\) ℓ. Each bottle holds \\(\\dfrac{1}{5} = \\dfrac{2}{10}\\) ℓ. \\(\\dfrac{9}{10}\\) makes 4 full bottles (\\(\\dfrac{8}{10}\\) ℓ) with \\(\\dfrac{1}{10}\\) ℓ left over.",
      "spec": {
        "unit_px": 60,
        "bars": [
          {"label": "Punch (tenths)", "segments": [
              {"u": 2, "text": "bottle", "fill": "#dbe9ff"},
              {"u": 2, "text": "bottle", "fill": "#cfe0fb"},
              {"u": 2, "text": "bottle", "fill": "#dbe9ff"},
              {"u": 2, "text": "bottle", "fill": "#cfe0fb"},
              {"u": 1, "text": "left", "fill": "#ffd2d2"}],
           "brace": {"text": "9/10 ℓ total"}}
        ]
      }
    },
    {
      "n": 24,
      "answer": "\\(\\dfrac{7}{32}\\)",
      "answer_matches_key": true,
      "working": "Take the whole box as 16 units (sixteenths). Red \\(= \\dfrac{3}{8} = \\dfrac{6}{16}\\) (6 units). Remaining \\(= \\dfrac{10}{16}\\) (10 units). Green \\(= \\dfrac{3}{10}\\) of remaining \\(= 3\\) units \\(= \\dfrac{3}{16}\\). Blue \\(+\\) black \\(= 7\\) units \\(= \\dfrac{7}{16}\\). Blue \\(=\\) black, so blue \\(= \\dfrac{7}{16} \\div 2 = \\dfrac{7}{32}\\).",
      "spec": {
        "unit_px": 45,
        "bars": [
          {"label": "Markers (16ths)", "segments": [
              {"u": 6, "text": "Red 6/16", "fill": "#ffd2d2"},
              {"u": 3, "text": "Green 3/16", "fill": "#cfe9cf"},
              {"u": 7, "text": "Blue + Black 7/16", "fill": "#dbe9ff"}]}
        ],
        "total": {"text": "Blue = half of 7/16 = 7/32", "bars": [0]}
      }
    }
  ]
}
