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

### Instruction:
What is the total number of goals when there are 3 draws, more than 18 losses, and played is smaller than 38?

### Inputs:
table_name: table, columns: ['Position', 'Club', 'Played', 'Points', 'Wins', 'Draws', 'Losses', 'Goals for', 'Goals against', 'Goal Difference']

### Response:
SELECT COUNT Goals for FROM table WHERE Draws = 3 AND Losses > 18 AND Played < 38