Xiao Ming arranged an extra row under a solid square array of chess pieces, and an extra row of chess pieces on the right side. A total of 23 chess pieces were used to form a new square array, and he changed the heart square array into a 40% of the hollow square matrix, how many chess pieces are there on each side of the outer layer of the square matrix?
小明在一个用棋子排成的实心方阵的下面多排一行，右边多排一列棋子，一共用了23个棋子，这样排成了一个新方阵，他又把这个心方阵改排成一个4成的空心方阵，这个方阵外层每边有多少个棋子？
<gadget id="calculator">23 + 1</gadget>
<output>24</output>

<gadget id="calculator">24 / 2</gadget>
<output>12</output>

<gadget id="calculator">12 * 12</gadget>
<output>144</output>

<gadget id="calculator">8 + 16 + 24 + 144</gadget>
<output>192</output>

<gadget id="calculator">1 + 1 + 1 + 1</gadget>
<output>4</output>

<gadget id="calculator">192 / 4 / 4</gadget>
<output>12</output>

<gadget id="calculator">12 + 1</gadget>
<output>13</output>

<result>13</result>