Lois has 40 books. She gives a fourth of her books to her nephew. From her remaining books, she donates a third of her books to the library. Then she purchases 3 new books from the book store. How many books does Lois have now?
Lois gives 40 / 4 = 
<gadget id="calculator">40/4</gadget>
<output>10</output>
10 books to her nephew.
Then Lois has 40 - 10 = 
<gadget id="calculator">40-10</gadget>
<output>30</output>
30 books.
Lois donates 30 / 3 = 
<gadget id="calculator">30/3</gadget>
<output>10</output>
10 books to the library.
Then Lois has 30 - 10 = 
<gadget id="calculator">30-10</gadget>
<output>20</output>
20 books.
After purchasing new books, Lois has 20 + 3 = 
<gadget id="calculator">20+3</gadget>
<output>23</output>
23 books.

<result>23</result>