Ok, before attacking this problem, we have to consider that the probability of getting two different types of cookies is the sum of the probability of the two different combinations. So, using the branches of tree, we'll start off by saying that the probability of getting a chocolate cookie first is 4/10, and then the probability of getting a butter cookie is 6/9. So:
P(CB)=P(C)*P(B)=4/10*6/9=24/90 and likewise, P(BC)= 6/10*4/9= 24/90. And now that we have the probability of both possibilities, we just add them up and we get 48/90.
The complement rule is much simpler. We know that those probabilities add up to 1, so to find the probability that we get different cookies, we subtract the probabilities that you get the same cookies in both tries from 1.
Effectively, this is our equation:
P(Different Cookies)=1-P(Same Cookies) => 1-P(BB)-P(CC) = 1-12/90-30/90=48/90, which is the same answer we got up above.

Deontae H.
10/16/20
Gracie A.
Thank you!! Your explanation was really helpful10/16/20