When 5 children from class A join class B, the number of children in both classes is the same. If 25 children from B, join A, then the number of children in A becomes double the number of children in B. The ratio of the number of children in A to those in B is:
A9 : 8
B19 : 18
C19 : 17
D18 : 17