{
 "problem_id": "TOYO-E0018-Q01-S02",
 "transcript": {
  "text": "40人の生徒に100点満点のテストを行ったところ，男子の平均点は75点，女子の平均点は85点，40人全体の平均点は81点でした。このとき，女子の人数は何人ですか。",
  "status": "agent_visual_confirmed",
  "notes": null
 },
 "depends_on": [],
 "solution": {
  "final_answer": "24人",
  "unit": null,
  "first_insight": "全体の平均 81 は男子の 75 より 6 高く、女子の 85 より 4 低い。てんびん (面積図) で人数の比はこの差の逆比 4:6 = 2:3。",
  "insight_basis": "平均より高い分の合計と低い分の合計は等しい (面積図の出っ張りとへこみが等しい) ので、差 × 人数 が釣り合う。",
  "steps": [
   "全体平均 81 と男子平均 75 の差は 6、女子平均 85 との差は 4",
   "てんびん: 男子の人数 × 6 = 女子の人数 × 4 → 男子:女子 = 4:6 = 2:3",
   "40 人を 2:3 に分けて 女子 = 40 × 3/5 = 24 (人)"
  ],
  "why": "平均 = 合計 ÷ 人数。全体平均を支点にすると『平均との差 × 人数』が左右で等しいので、人数は差の逆比になる。",
  "check": "男子 16 人 × 75 = 1200、女子 24 人 × 85 = 2040、合計 3240 = 40 × 81 で一致。",
  "common_errors": [
   {
    "error": "比を逆にして女子 16 人とする",
    "where": "2手目",
    "detect": "全体平均 81 は 85 に近いので女子の方が多いはず"
   },
   {
    "error": "(75+85)÷2 = 80 を全体平均と混同する",
    "where": "発想",
    "detect": "人数が違えば単純平均にならない"
   }
  ],
  "minimal_points": [
   "全体平均との差を出す (6 と 4)",
   "人数は差の逆比",
   "比で 40 人を分ける"
  ],
  "related": []
 },
 "hints": [
  "全体平均 81 は、男子・女子それぞれの平均からどれだけ離れているか",
  "『平均との差 × 人数』が男女で釣り合う (てんびん・面積図)",
  "人数の比は平均との差の逆比になる"
 ],
 "analysis": {
  "primary_field": "文章題",
  "secondary_fields": [
   "割合と比"
  ],
  "cores": [
   "平均算の面積図・てんびん",
   "逆比"
  ],
  "prerequisites": [
   "平均の定義",
   "逆比"
  ],
  "insight_triggers": "2 グループの平均と全体平均 → てんびん",
  "core_explanation": "",
  "barrier": "条件整理",
  "approach_comparison": ""
 },
 "learning": {
  "difficulty": "A",
  "difficulty_basis": "",
  "difficulty_scale": "典型問題の知識をそのまま使える (1〜2段階)",
  "est_minutes": 2,
  "est_basis": "推定 (分析者の暫定値。実測値は学習履歴で別管理)",
  "error_types": [
   "知識不足"
  ],
  "prereq_weight": 0
 },
 "teacher": {
  "background": "教師用: 女子 g 人として 75(40−g) + 85g = 3240 → 10g = 240 → g = 24。",
  "alternatives": "",
  "intent_estimate": "平均算の基本 (てんびん・面積図) を素早く処理できるかの確認と推定。",
  "confidence": "高"
 },
 "lecture_notes": null,
 "teaching_notes_refs": [
  {
   "page": 15,
   "principle": "逆比 (差の逆比で分ける)"
  },
  {
   "page": 38,
   "principle": "てんびん (食塩水と同じ『差×量』の釣り合い)"
  }
 ],
 "verification_methods_declared": [],
 "notes": null,
 "defective": false,
 "content_version": 1,
 "changelog": [
  {
   "version": 1,
   "at": "2026-10-22T10:59:28+09:00",
   "reason": "初版"
  }
 ],
 "_sig": "4191015e3b5db3ab3ad7f2c115395ecd1dbcbea2efa50069c4d6a66316e40e67",
 "verification": {
  "checks": {
   "source_mapping_confirmed": true,
   "crop_visually_checked": true,
   "shared_context_confirmed": true,
   "answer_consistency_checked": true,
   "independent_verification_passed": true,
   "no_unresolved_conflicts": true,
   "explanation_reproducible": true,
   "no_answer_leak_on_front": true
  },
  "methods": [
   {
    "method": "女子人数 g を 0〜40 で全探索し、合計点 75(40−g)+85g = 81×40 を満たす g を求める",
    "result": "計算値 24 / 期待値 24 → 一致",
    "by": "verification_script"
   },
   {
    "method": "学校公表の正解との照合",
    "result": "公式 '24人' → 一致",
    "by": "verification_script"
   },
   {
    "method": "カード解答(final_answer)と計算値の整合",
    "result": "一致",
    "by": "verification_script"
   }
  ],
  "script": "scripts/verify/TOYO-E0018.py",
  "verified_at": "2026-10-23T00:20:58+09:00",
  "verified_by": "verification_script+agent",
  "official_answer": "24人",
  "computed": "24",
  "conflicts_unresolved": false,
  "stale": false
 },
 "updated_at": "2026-10-23T00:21:24+09:00"
}