This answer is assuming that the question is talking about the probability of drawing EXACTLY 1 marble out of the bag and determining the likelihood of it being a black marble or being white marble.
Now, something that many of the school teachers who teach math, (no offense to anyone) including the one who "taught" me probability is that they always leave out the idea that math is a formal system that is always based on fundamental assumptions which mathematicians call Axioms.
First off though, let's start with defining the word probability: one of the dictionary definitions is "Probability is the extent to which an event is likely to occur, measured by the ratio of favored cases to the total number of possible cases. Or using mathematical notation, given event E:
$P(E)=\frac{favorable\:outcomes}{total\:possible\:outcomes}$
The idea behind this is that we are making the assumption that each individual outcome is equally likely. That means that we are making the assumption that there exists a probability for picking a single white marble such that the probability of doing so is exactly equal to the probability of picking a single black marble. Or, expressed in mathematical notation, P be predicate for "Probability of picking", let w be predicate for "white marble", let b be predicate for "black marble":
$\exists \:P\left(w\right):\:P\left(w\right)=P\left(b\right)$
Also, we represent the probability of an event that will NEVER happen, as a 0% chance of happening meaning that for every 100 times the event could happen theoretically, it happens 0 times out of 100 and the way we represent this is:
$P\left(E\right)=\frac{0}{100}=0$
And, in a similar fashion, if the probability of an event is CERTAIN, then it will happen 100 times for every 100 times it can happen i.e.
$P\left(E\right)=\frac{100}{100}=1$
If we use the definition of certainty being 100%, i.e. 1, and we assume out of all the possible outcomes, at least one of the individual outcomes must occur (in this case a person has to either draw a white marble or black marble, can't draw zero marbles or have a random grey marble magically pop into existence),
Then the sum of all the individual outcomes must equal to 1.
If you let A,B,C ... be the individual outcomes then mathematically:
$P\left(A\right)+P\left(B\right)+P\left(C\right)+...\:=1$
Thus if you combine the assumption that each of the individual outcomes are equally likely and the definition that all individual outcomes must sum up to 1, then if you number all the white marbles (from 1-10) and all the black marbles from (1-20) then you get:
$P\left(w_1\right)=P\left(w_2\right)=...=P\left(w_{10}\right)= P\left(b_1\right)=P\left(b_2\right)=...\:P\left(b_{20}\right)$
and you also get:
$P\left(w_1\right)+P\left(w_2\right)+...+P\left(w_{10}\right)+P\left(b_1\right)+P\left(b_2\right)+...\:P\left(b_{20}\right)=1$
Solving this gives you:
$P\left(b_1\right)=\frac{1}{30}$
and since there are 20 black marbles, if you let E rep. the event of selecting a black marble you get:
$P(E) = \frac{20}{30} = \frac{2}{3}$
and, you would use the same assumptions and reasoning for the other bag with just 2 black marbles and 1 white marble to get the same probability.
Now, the KEY IDEA here is that we made the assumption that each individual outcome is equally likely. This is not necessarily true in real life. For example, if you toss a coin (and actually depending on how you toss the coin) the probability of heads is actually slightly higher than the probability of tails (51% and also there's a very small probability of landing exactly in the middle). Another example would be if you had a loaded die, then the probability of each number wouldn't necessarily be $\frac{1}{6}$.
The simulations that run in theory will not necessarily have the same results as actually conducting the experiment in practice because real life is usually not as ideal and beautiful as it is in mathematics.
In my opinion, I believe the best answer to the question "which bag is more likely to yield a black marble?" is:
"It depends on how you draw the marble out of the bag, depends on the composition of each marble (maybe like some marbles are heavier than others) etc. But, if you assume the likelihood of drawing each individual marble is equally likely then, you should have an equal chance of drawing a black marble from bag 1 as you do in bag 2."