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

### Instruction:
What year did finish 1st in LMP1 class?

### Inputs:
table_name: table, columns: ['Year', 'Team', 'Co-Drivers', 'Class', 'Laps', 'Pos.', 'Class Pos.']

### Response:
SELECT AVG Year FROM table WHERE Class = lmp1 AND Class Pos. = 1st