In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4521, 749, 7291, 'j', '5865', 'N', 'A', '6623', 'U', 8777, 3021, 7223], [1007, 4187, 2791, 5819, 'O', 'j', '5865', 'N', 'A', '6623', 'p', 7471, 7521, 2965]