Spot an impossible subtotal

Type the number and its unit as a single group. · 196 words

Begin with a prompt that names the source, limits the task, and defines a check. A receipt says 3 notebooks at $4.25 each and 2 pens at $1.50 each, with no other items. Ask: 'Use only these lines. Show each line total, add them, and compare the result with the printed subtotal of $157.50. Do not include tax or shipping.' The line totals are $12.75 and $3.00, so the expected subtotal is $15.75. The printed subtotal is $141.75 too high. This is easy to verify by multiplication, addition, and subtraction. The prompt supplies source details, visible steps, and a clear mismatch test.

Try a smaller error. A cafe receipt lists 2 teas at $3.50 each and 1 muffin at $4.25. The printed subtotal is $11.85. Ask: 'Recalculate from the listed quantity and unit price, show each line total, and report the difference from $11.85.' The tea line is $7.00, so the correct subtotal is $11.25, which is $0.60 below the receipt. The bill still looks plausible, so a rough bound alone would miss this mistake. Checking each line against the source catches it. End with: 'If the values disagree, state both values and the exact difference.'

Check your recall

For the notebook-and-pen receipt, what subtotal should be printed, and what discrepancy should the AI report?

Check your answer

The correct subtotal is $15.75: 3 x $4.25 + 2 x $1.50 = $12.75 + $3.00. The AI should flag the printed $157.50 as $141.75 too high.

Sources and credits

Original KeyTouch lesson. Background reading · DAIR.AI · Examples of Prompts.