How to compare and subtract elements in nested list to generate a new list

I have list of lists like this one:
list={{1, 9, 4, 7, 2}, {1, 4, 7, 1, 8}, {0, 5, 7, 2, 9}}
where every nested list have 5 elements.

I want to compare the third, fourth and fifth elements of each nested list and do the subtraction: the largest number minus the smallest number. The result should create a new list.

In my example, it should work like this:
in the first nested list {1, 9, 4, 7, 2} the largest value between the third, fourth and fifth elements is 7 and the smallest 2, subtraction 7-2=5. So 5 will be the first element in the new list with results. I want to do it with every nested list in my list of list.
For my example, the result will be:
result={5,7,7}

The problem is that I don’t know how to do it. It’s not just comparing the elements between nested lists or extracting specific elements from the lists (because I want to compare and subtract them first, then get the result). Please help!