In 5 years, Joey will be as old as Beth is now. If Joey is 9 now, how old was Joey when Beth was Joey's age now?
Beth is 5+9=
<gadget id="calculator">5+9</gadget>
<output>14</output>
14 now.
Beth was 9 years old 14-9=
<gadget id="calculator">14-9</gadget>
<output>5</output>
5 years ago.
Joey was 9-5=
<gadget id="calculator">9-5</gadget>
<output>4</output>
4.

<result>4</result>