In 7 weeks 5*7 = <<35=35>>35 goldfish die.
In 7 weeks, Martin purchases 3*7 = <<3*7=21>>21 goldfish.
In 7 weeks, Martin will have 18-35+21 = <<18-35+21=4>>4 goldfish.
#### 4