There are a total of 20 names, 9 of which are girl names.
The probability that the first name is a girl name is 9/20.
Since there's one less girl name in the hat, there are now a total of 19 names, 8 of which are girl names. So the probability that the second name is a girl name is 8/19.