How to remove a record if it is duplicate end sum values :val

I have a hash like so:

That's not a hash, it's an array of hashes.

What I would like to learn how to do is how to remove a record if it is
duplicate end sum values :val.

  list.uniq!