I have 2 dynamic arrays, I need to get the index of specific items of the same value and the match their index with items in the second array to get their value, so i can alter the second arrays values

Hi,
Any solution to this?
Currently I am trying to spawn particle count per particle Index or ID.