John wants to buy 15 packets of chips, which will cost him 15 * 2 = $<<15*2=30>>30.
So John would have 45 - 30 = $<<45-30=15>>15 left for the corn chips.
John could buy for the rest of the money 15 / 1.5 = <<15/1.5=10>>10 packets of corn chips.
#### 10