I want to find out if the maximum value in a list has a smaller index than the minimum value in a list. If there are two or more indices with the minimum value, I want to look at the greatest index. If there are two or more indices with the maximum value, I want to look at the smallest index. Now my code looks like this:

```
maximum = max(lijst)
minimum = minimum(lijst)

if lijst.index(maximum) <= lijst.index(minimum):
...

```

But this doesn't give me the indices I want with these kind of lists:

```
[2, 9, 15, 36, 36, 3, 2, 36]

```

Now I want to look at the largest index of the minimum value (which is 6 in this case) and the smallest index for the maximum value (which is 3 in this case). Does someone know how to find these indices?