I have approached the question in a different way:
1st let us fix one girl and find out how many dolls she could get
Case 1: She goes with 2 girls and 2 boys and that can happen in 4C2 ways i.e. 6 ways
Case 2: She goes with 1 girl and 3 boys and that can happen in 2C1*4C3 i.e. 8 ways
Case 3: She goes with 4 boys and that can happen in 1 way only.
Hence the no of possible ways in which she can go/get a doll = 6+8+1 = 15.
As there are 3 girls in the group, the total no. of dolls the girls have got is 15*3 = 45