Tracy purchases cotton candy in a ratio of 2 pink to 7 blue to sell at a carnival. She has a total of 108 bags. How many bags of each color does she have?