Hi everyone,
I am trying to build a really simple recommendation system. I can not think of the pseudocode behind it, but I know the logic.

John buys A B C D E
Alex buys A B X Y Z

I buy A B C F R

I would be recommended items from John since I have more matches with him. Therefore, items D and E would be recommended. It's very simple. Could someone please help me with this?