Explanation:
so first you must calculate the total amount of marbles there are, that being addition : 1+4+2+6+4+5 = 24 in total. now you want to make that into a fraction, 24/24 marbles, once again all together, so the probability of not getting a black marble is 5/24 and probability of not getting a green is 2/24.