2. First-grader Petya was laying out a contour of an equilateral triangle with the tokens he had, so that each of its sides, including the vertices, contained the same number of tokens. Then, with the same tokens, he managed to lay out the contour of a square in the same way. How many tokens does Petya have, if each side of the square contains 2 tokens less than each side of the triangle?