Answer: There are 20 ways and 1680 ways respectively.
Step-by-step explanation:
Since we have given that
Total number of blocks = 6
Number of red blocks = 3
Number of green blocks = 3
So, Number of patterns she can make by placing them all in a line is given by
[tex]\dfrac{6!}{3!\times 3!}\\\\=20[/tex]
If there are 3 white blocks
so, total number of white blocks becomes 9
So, Number of total pattern she can make by placing all nine blocks in a line is given by
[tex]\dfrac{9!}{3!\times 3!\times 3!}\\\\=1680\ ways[/tex]
Hence, there are 20 ways and 1680 ways respectively.