An ice-cream truck sells milkshakes for $3.50 and cones for $2. On Wednesday, a total of 45 milkshakes and cones were sold, and the truck operator collected a total of $142.50 from cone and milkshake sales. How many ice-cream cones were sold on Wednesday?