Math Word Problem Solver — illustrative example INPUT Three notebooks cost $4 each; a pen costs $2. What is the total? RESULT 3 × $4 + $2 = $14. The total cost is $14. REVIEW Translate the words into quantities and relationships before calculating. Check units and whether the computed answer actually addresses the question. This is a teaching example, not a live execution record.