Hi,
Let x and (175 - x)represent the number of cookies and soft drinks sold respectively
Question states***
$0.50x + $0.30(175 - x) = $65.70
solving for x
$0.20x = $65.70 - $0.30*175
$0.20x = $65.70- $52.50
x = 13.20/.20
x = 66, number of cookies sold, soft drinks, 109 were sold (175-66)
CHECKING our Answer
.50*66 + .30*109 = $33 + $32.70 = 65.70