Three girls play three rounds of a game. On each round there are two winners and one loser. The girl who loses on a round has to double the number of chips that each of the other girls has by giving up some of her own chips. Each girl loses one round. At the end of three rounds, each girl has 24 chips. How many chips did each girl have at the beginning of the game?