Lorin has 4 black marbles. Jimmy has 22 yellow marbles. Alex had twice as many black marbles as Lorin and one half as many yellow marbles as Jimmy. How many marbles does Alex have?
Alex has 2*4=
<gadget id="calculator">2*4</gadget>
<output>8</output>
8 black marbles.
Alex has 22/2=
<gadget id="calculator">22/2</gadget>
<output>11</output>
11 yellow marbles.
Alex has 8+11=
<gadget id="calculator">8+11</gadget>
<output>19</output>
19 marbles.

<result>19</result>