Mingming reads a story book, read half of the book on the first day plus 6 pages, and read exactly half of the remaining pages on the second day. At this time, there are 40 pages left. How many pages are there in this book?
明明看一本故事书，第一天看了全书的一半多6页，第二天正好看了剩下页数的一半，这时还剩40页，这本书一共有多少页．
<gadget id="calculator">40 * 2</gadget>
<output>80</output>

<gadget id="calculator">80 + 6</gadget>
<output>86</output>

<gadget id="calculator">86 * 2</gadget>
<output>172</output>

<result>172</result>