There are 4 male and female students each, and now they are divided into 2 groups, so that each group has 2 male students and 2 female students. How many different ways of grouping are there?
男女同学各4名，现将他们分成2组，使得每组均有2个男同学，2个女同学，问有多少种不同的分组方法？
<gadget id="calculator">4 * 3</gadget>
<output>12</output>

<gadget id="calculator">2 * 1</gadget>
<output>2</output>

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

<gadget id="calculator">6 * 6</gadget>
<output>36</output>

<result>36</result>