full price → 1/2 half price → 3/7
remaining → 1 - 1/2 - 3/7 = 14/14 - 7/14 - 6/15 = 1/14
"The remaining 45 tickets were given away free of charge."
1/14 tickets → 45 14/14 tickets → 14 x 45 = 630
number of full price tickets → 1/2 x 630 = 315
total money from full price → 315 x $38 = $11 970
number of half price tickets → 3/7 x 630 = 270
half price → $38 ÷ 2 = $19
total money from half price price → 270 x $19 = $5130
total sale → $11970 + $5130 = $17100