Yup, so you use ArrayList Contain action, if you don't have it then check on ecosystem.
So ArrayList A, ArrayListB and you basically check if B Contains items from A. You can also download on ecosystem the same action but with a counter, so you can count how many were the same.