There are four balls of four different colors, A, B, C, and D. Select some of them and put them in a bag. Put at least 1 ball and put at most 2 balls. How many different ways are there in total?
有A、B、C、D四种不同颜色的球各一个，从中选出一些放入一个袋中，至少放1个，最多放2个，一共有多少种不同的放法？
<gadget id="calculator">4 * 3</gadget>
<output>12</output>

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

<gadget id="calculator">4 + 6</gadget>
<output>10</output>

<result>10</result>