If you have 10 infantry and 1 artillery attacking, you have nine rolls of 1, and two rolls of 2.
The 1 rolls are unsupported infantry.
The two 2 rolls belong to an artillery, and a supported infantry, respectively.
If you have 10 infantry and 2 artillery attacking, you have eight rolls of 1 and four rolls of 2.