There is only 1 way to select three red blocks, which is to select them all.
There are 4 ways to select 3 green block, because when you select 3 green
blocks, you leave 1 green block behind, and there are 4 ways to leave 1
green block behind.
So there are 1+4 = 5 ways to selecting 3 blocks of the same color out of
[7 blocks CHOOSE 3] = 7C3 = 35 ways
So 5 successful ways out of 35 is a probability of 5/35 or 1/7.
Edwin