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

### Instruction:
How many goals were scored by the team that played less than 38 games, and had points of 47+9?

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

### Response:
SELECT MAX Goals for FROM table WHERE Points = 47+9 AND Played < 38