The number of ways this can be done is 70ways
This question will be solved using the combination rule, according to the rule;
[tex]nC_r =\frac{n!}{(n-r)!r!}[/tex]
For us to arrange 8 different kinds of gummy bears to be lined up in a row of 4, this can be done in 8C4 ways
[tex]8C_4 =\frac{8!}{(8-4)!4!}\\8C_4=\frac{8!}{4!4!}\\ 8C_4=\frac{8\times 7\times 6\times 5\times4!}{4!4!}\\8C_4=\frac{8 \times 7\times 6\times5}{24} \\8C_4=\frac{1680}{24} \\8C_4=70ways[/tex]
Hence the number of ways this can be done is 70ways
learn more here: https://brainly.com/question/23327040