Question 314 black balls, 4 white balls and 2 red balls are arranged in a row. Find the total number of ways this can be done if all the balls of the same colour do not appear in a consecutive block.