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

### Instruction:
What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?

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

### Response:
SELECT MAX Goals for FROM table WHERE Position > 8 AND Losses = 12 AND Played < 30