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

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

Hence, there are 20 ways and 1680 ways respectively.
Unsure what you mean by diagonal right triangle
but if you wanted to find the hypothenuse (longest side) of a right triangle, you can apply pythagorean theorem

where c is the hypothenuse
a and b are the other sides
12,750 tickets were sold. 0.85*15,000
16, 4, 12, 36, 9, 27, 44, 11, next is 33. 44-11=33