Answer:
3
Explanation:
By running the following Python code, we can safely assume the answer to be 3:
---------------------
import random
def cap_throw():
cap_list = ['R', 'R', 'R', 'G', 'G', 'G', 'B', 'B', 'B']
random_cap_list = cap_list[:]
random.shuffle(random_cap_list)
counter = 0
for i in range(len((cap_list))):
if cap_list[i] == random_cap_list[i]:
counter += 1
return counter
results_list = []
for i in range(10 ** 6):
results_list.append(cap_throw())
print(sum(results_list) / len(results_list))
---------------------
Which gave 2.998795.