Total number of caps = 12
Total number of result = n(S) = 12C4 = 495
Out of 5 caps, number of ways to not pick a green cap = n(E1) = 5C0 = 1
and out of 7 caps, number of ways to pic 4 caps = n(E) = 7C4 = 35
∴ Required probability = (1 x 35)/495 = 7/99