Now there are twice as many dogs as cats, and if the number of cats is 20, there are 2*20=<<2*20=40>>40 dogs.
Before twenty new ones were born, the number of dogs in the neighborhood originally was 40-20=<<40-20=20>>20
If the number of dogs in the neighborhood was originally half the number of cats in the neighborhood, there were 20*2=<<20*2=40>>40 cats in the neighborhood.
#### 40