How to find the biggest number in the variable with many instances in anoher actor

like this?