Xiao Wang went into a store, spent half of the money he brought, and then spent another 10 yuan, walked out of this store, went into another store, spent half of the remaining money, and spent another 10 yuan, At this time, he ran out of money. How much money did Xiao Wang bring before entering the first store?
小王进了一家商店，花了所带钱的一半，然后又花了10元钱，走出这个商店，又进了另一家商店，花了余下的钱的一半之后，又花了10元钱，这时他把钱用完了，小王进第一家商店之前带了多少钱？
<gadget id="calculator">10 * 2</gadget>
<output>20</output>

<gadget id="calculator">20 + 10</gadget>
<output>30</output>

<gadget id="calculator">30 * 2</gadget>
<output>60</output>

<result>60</result>