Janet has 9 cards more than Brenda. Mara has twice as many cards as Janet. How many cards do they have in all if Mara has 40 cards less than 150?
Mara has 150 - 40 = 
<gadget id="calculator">150-40</gadget>
<output>110</output>
110 cards.
Janet has 110/2 = 
<gadget id="calculator">110/2</gadget>
<output>55</output>
55 cards since Mara has twice as many as Janet.
Brenda has 55 - 9 = 
<gadget id="calculator">55-9</gadget>
<output>46</output>
46 cards since Janet has 9 cards more than Brenda.
Therefore, they all have 110 + 55 + 46 = 
<gadget id="calculator">110+55+46</gadget>
<output>211</output>
211 cards.

<result>211</result>