Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What team has the most wins with at least 18 goals and less than 5 losses?

### Inputs:
table_name: table, columns: ['Team', 'Games Played', 'Wins', 'Losses', 'Ties', 'Goals For', 'Goals Against']

### Response:
SELECT MAX Wins FROM table WHERE Goals For = 18 AND Losses < 5