There are two kinds of soap in the store, one is 3 yuan each, and the other is 2 yuan each, and the quantity of the two soaps is the same. The teacher spent a total of 30 yuan on the soap. How many pieces of each soap did you buy?
商店里有两种肥皂，一种每块3元，另一种每块2元，且两种肥皂的数量相同，老师买肥皂共花了30元．每种肥皂各买了多少块？
<gadget id="calculator">3 + 2</gadget>
<output>5</output>

<gadget id="calculator">30 / 5</gadget>
<output>6</output>

<result>6</result>