On a chessboard, there are 8 white pawns and 8 black pawns. They are about to be put in bags. There is a red bag, a blue bag, and a yellow bag. The red bag can hold at most 12 pawns, the blue bag can hold at most 11 pawns, and the yellow bag can hold at most 10 pawns. If each bag must hold at least 1 white pawn and at least 1 black pawn, how many possible ways are there to put the pawns in the bags?
Note: Pawns of the same color are considered identical.