Xiao Ming's mother took part of the money to go shopping, and she used half of the money to buy a coat for herself, and the remaining half to pay 12 yuan to buy some books for Xiao Ming, leaving 138 yuan. How much did mother bring in total?
小明妈妈带了一部分钱去逛商店，她用了钱的一半为自己买了件上衣，又用余下的一半还12元为小明买了些书，这时还剩下138元．妈妈一共带了多少元？
<gadget id="calculator">138 + 12</gadget>
<output>150</output>

<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">(1/2) * (1/2)</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">1 - (1/2) - (1/4)</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">150 / (1/4)</gadget>
<output>600</output>

<result>600</result>