% MCAS Problem 26
cards=1:36;
success=0;
trials=10000;
for i=1:trials
 [temp1,i]=sort(rand(1,36)); % shuffles 1 to 36 in vector i
 firstcard=cards(i(1));
 if mod(firstcard,4)==0
    if mod(firstcard,6)==0
        success=success+1;
    end
 end
end
answer=success/trials