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

### Instruction:
How many golds were there in a game that has 17 bronze and a total of 31?

### Inputs:
table_name: table, columns: ['Games', 'Gold', 'Silver', 'Bronze', 'Total', 'Rank']

### Response:
SELECT Gold FROM table WHERE Bronze = 17 AND Total = 31