{
 "problem_id": "TOYO-E0020-Q02-S01",
 "transcript": {
  "text": "次の各問いに答えなさい。\n(1) 80円のえんぴつと110円のボールペンをそれぞれ何本かずつ買って、代金は4350円になる予定でしたが、買う本数を逆にしてしまったため、代金は4200円になりました。買う予定だったボールペンは何本でしたか。",
  "status": "agent_visual_confirmed",
  "notes": null
 },
 "depends_on": [],
 "solution": {
  "final_answer": "25本",
  "unit": null,
  "first_insight": "本数を逆にしても『本数の合計』は同じ。2 通りの代金を足すと (80+110)×(合計本数)、引くと (110−80)×(本数の差)。",
  "insight_basis": "単価を入れ替えた 2 つの式は、足せば単価の和 × 本数の和、引けば単価の差 × 本数の差になる (消去算の定石)。",
  "steps": [
   "予定: 80×(えんぴつ) + 110×(ボールペン) = 4350。逆: 80×(ボールペン) + 110×(えんぴつ) = 4200",
   "2 式を足す: (80+110)×(本数の合計) = 8550 → 本数の合計 = 8550 ÷ 190 = 45 (本)",
   "2 式を引く: 予定の方が 150 円高い = 単価の高いボールペンの方が多い → (110−80)×(ボールペンの本数 − えんぴつの本数) = 150 → 差 5 (本)",
   "和差算: ボールペン = (45 + 5) ÷ 2 = 25 (本) (えんぴつ 20 本)"
  ],
  "why": "本数の入れ替えでは合計本数が不変なので和が使え、単価差 30 円 × 本数差が代金差になる。和と差が分かれば和差算。",
  "check": "80×20 + 110×25 = 1600 + 2750 = 4350 ✓、80×25 + 110×20 = 2000 + 2200 = 4200 ✓",
  "common_errors": [
   {
    "error": "つるかめ算で解こうとして『合計本数』が与えられておらず詰まる",
    "where": "発想",
    "detect": "2 つの代金を足すと合計本数が出る"
   },
   {
    "error": "代金差 150 を 190 で割る、または差 5 本を『えんぴつの方が多い』と逆に取って 20 本と答える",
    "where": "3手目",
    "detect": "予定 (4350) の方が高い → 高い方の品 (ボールペン) が多い"
   }
  ],
  "minimal_points": [
   "本数を逆 → 合計本数は同じ",
   "和: 190×合計、差: 30×本数差",
   "和差算で仕上げ"
  ],
  "related": []
 },
 "hints": [
  "本数を逆にしても変わらないものは何か。2 通りの代金を足してみる",
  "2 通りの代金の差 150 円は『単価の差 × 本数の差』",
  "本数の和と差が分かれば和差算"
 ],
 "analysis": {
  "primary_field": "文章題",
  "secondary_fields": [
   "計算"
  ],
  "cores": [
   "消去算 (和と差)",
   "和差算"
  ],
  "prerequisites": [
   "和差算",
   "消去算の基本"
  ],
  "insight_triggers": "『本数を逆にした』→ 2 式を足す・引く",
  "core_explanation": "",
  "barrier": "条件整理",
  "approach_comparison": ""
 },
 "learning": {
  "difficulty": "A",
  "difficulty_basis": "『足す・引く』の定石を知っていれば 3 段階",
  "difficulty_scale": "典型問題の知識をそのまま使える (1〜2段階)",
  "est_minutes": 3,
  "est_basis": "推定 (分析者の暫定値。実測値は学習履歴で別管理)",
  "error_types": [
   "条件の読み落とし"
  ],
  "prereq_weight": 0
 },
 "teacher": {
  "background": "",
  "alternatives": "",
  "intent_estimate": "単価入れ替え型の消去算。『足して和、引いて差』という定石の運用と、どちらが多いかの向きの判断を問うと推定。",
  "confidence": "中"
 },
 "lecture_notes": null,
 "teaching_notes_refs": [
  {
   "page": 31,
   "principle": "消去算 (そろえる)"
  }
 ],
 "verification_methods_declared": [],
 "notes": null,
 "defective": false,
 "content_version": 1,
 "changelog": [
  {
   "version": 1,
   "at": "2026-10-22T07:18:53+09:00",
   "reason": "初版"
  }
 ],
 "_sig": "6e812f43f88c54040eeeaf85423f63844a1c9c12a9c861932cbfb220edb84ca9",
 "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": "本数 (a, b) の全探索で 2 つの代金条件を同時に満たす組を見つける",
    "result": "計算値 25 / 期待値 25 → 一致",
    "by": "verification_script"
   },
   {
    "method": "学校公表の正解との照合",
    "result": "公式 '25本' → 一致",
    "by": "verification_script"
   },
   {
    "method": "カード解答(final_answer)と計算値の整合",
    "result": "一致",
    "by": "verification_script"
   }
  ],
  "script": "scripts/verify/TOYO-E0020.py",
  "verified_at": "2026-10-23T00:21:01+09:00",
  "verified_by": "verification_script+agent",
  "official_answer": "25本",
  "computed": "25",
  "conflicts_unresolved": false,
  "stale": false
 },
 "updated_at": "2026-10-23T00:21:24+09:00"
}