Filter the most occurred items in list?

hello…I want to remove the least occurred item (item 5 in list A, and item 5 in list B)
is there a way to check the most occurred items and remove the rest?

@newshunhk try to use Sort by key node.

@newshunhk You can try something like this:

thank you!