He has 2*7=<<2*7=14>>14 hats
So they cost 14*50=$<<14*50=700>>700
#### 700