You are given an 8x8 cm wooden game board and three types of plastic rectangles. The pieces consist of: four 5x1 cm blue rectangles, five 4x1 cm red rectangles, and eight 3x1 cm yellow rectangles. Calculate the number of possible ways to arrange the pieces on the board such that all pieces are used.