A local bookshop is selling off its old inventory in order to bring in newer books. They currently have 743 books in their store. They sold 37 books in-store on Saturday and sold 128 books online. On Sunday, they sold twice as many books in-store and increased their online sales by 34 books. They also received a shipment of 160 books. How many books do they currently have?
On Sunday they sold twice as many books in-store as the 37 books on Saturday so they sold 2*37 = 
<gadget id="calculator">2*37</gadget>
<output>74</output>
74.
They sold 128 books online on Saturday and increased that number by 34 books on Sunday for a total of 128+34 = 
<gadget id="calculator">128+34</gadget>
<output>162</output>
162.
Over the weekend they sold 37+128+74+162 = 
<gadget id="calculator">37+128+74+162</gadget>
<output>401</output>
401 books.
They started off with 743 books and sold 401 books which brings the inventory to 743-401 = 
<gadget id="calculator">743-401</gadget>
<output>342</output>
342 books.
They have 342 books and received a shipment for 160 bringing their inventory to 342+160 = 
<gadget id="calculator">342+160</gadget>
<output>502</output>
502 books.

<result>502</result>