"There were three times as many girls as boys."
number of girls → 3u number of boys → 1u
"Each boy was given 2 balloons and each girl was given 3 balloons."
1 boy balloon → 2 balloons 1 girl balloon → 3 balloons
"In total, the girls received 161 more balloons than the boys."
total girls balloons → number of girls x 1 girl balloon = 3u x 3 = 9u
total boys balloons → number of boys x 1 boy balloon = 1u x 2 = 2u
"In total, the girls received 161 more balloons than the boys."
difference (in units) → total girls balloons - total boys balloons = 9u - 2u = 7u
difference → 161
7u → 161 1u → 161 ÷ 7 = 23
total balloons (units) → total girls balloons + total boys balloons = 9u + 2u = 11u
11u (total balloons) → 11 x 23 = 253