Xiaoli bought a schoolbag and used half of the money she brought, and borrowed 2 yuan from her classmates, which was just enough to buy a pair of compasses worth 12 yuan. How much did Xiaoli bring with her when she went out?
小丽买一只书包用去所带钱的一半，又和同学借了2元刚好够买一把价值12元的圆规．小丽出门时带了多少钱？
<gadget id="calculator">12 - 2</gadget>
<output>10</output>

<gadget id="calculator">10 * 2</gadget>
<output>20</output>

<result>20</result>