Keep only one similar word in paragraph

have some same word in paragraph i keep the last word only

For example:

Amount 20.25 is proccesed due to payment and amount 20.25 is processed due to payment as per source

Since this paragraph has two payment name i have to take only last one

My output should be:
Amount 20.25 is proccesed and amount 20.25 is processed due to payment as per source

Duplicated post