Answer:
His pattern is 42cm long.
Explanation:
Each repetition of the pattern is 8 cm (4 colors time 2cm each)
If the last color is red and he painted 6 red strips in total, then he repeated the pattern 5 times and ended on an extra red strip.
So 8cm times 5 repetitions equals 40, plus 2cm for the extra red strip.