There are 59 books in three layers on the bookshelves of class 5 and 2. The first layer is 1 book more than the second layer three times, and the third layer is 2 times less than the second layer. How many books are there on the second floor?
五2班的书架上摆放着三层书共59本，第一层比第二层的3倍多1本，第三层比第二层的2倍少2本．第二层有多少本书？
<gadget id="calculator">59 - 1</gadget>
<output>58</output>

<gadget id="calculator">2 + 58</gadget>
<output>60</output>

<gadget id="calculator">1 + 3 + 2</gadget>
<output>6</output>

<gadget id="calculator">60 / 6</gadget>
<output>10</output>

<result>10</result>