Hi Raghavendra Bhagwat,
I Think you are trying to filter list A with entire list B. However, it is not possible to filter like that, You can filter List A with Only a single Object of List B then you can get filtered list which is associated to object B.
if you want to filter with entire list it is best to use loop. I Hope this helps.
Thankyou.