The cost of the bulb is $7 - $4 = $<<7-4=3>>3.
The cost of 2 lamps is $7 x 2 = $<<7*2=14>>14.
The cost of 6 bulbs is $3 x 6 = $<<3*6=18>>18.
Jim paid a total of $14 + $18 = $<<14+18=32>>32.
#### 32