what we are looking for is the number of children (x)

We know the base cost is $6.00

2 extra adults @ $.5 is $1.00.

The cost of the children

x @ $.5 is .5x

so if we add all of these up it is the total cost and we know that the total cost is $19.50 so we get

So there were 25 children