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

### Instruction:
What is the total medals for nation with more than 0 silvers and more than 0 golds?

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

### Response:
SELECT AVG Total FROM table WHERE Silver > 0 AND Gold > 0