Father bought 3 cakes at $7.90 each , 6 hot dogs at $1.05 each and some icicles at $0.50 each . the ttoal amount that father paid was $39.50, how many icicles did he buy?