His car depreciated 18000-6000=$<<18000-6000=12000>>12000
So he made a profit of 30000-12000=$<<30000-12000=18000>>18000
#### 18000