In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9941, 'N', 'r', 2229, 997, 'h', 'i', 'p', 'K', 'W', 8323, 5659, 4771, 'B', 'T', 2177, 'x', 4577, 5579, 'j', 2643, 7071, '5789', '3849', 'y', 'D', 's', 'q', 'p', '7861', 'x', '4161', 'c', 'f', '577', 'T', '1247', 'j', '8781', '1661', '1985', '5443', '8377', '7303', 'r', 'T', 's', 8493, 'y', 'g', 1095, 8535, 'd', 'y', 6899, 'O', 5131, 'N', 'K'], ['X', 'G', 'D', 'p', 'X', 9451, '5789', '3849', 'y', 'D', 's', 'q', 'p', '7861', 'x', '4161', 'c', 'f', '577', 'T', '1247', 'j', '8781', '1661', '1985', '5443', '8377', '7303', 'r', 'R', 3405, 8775, 751, 4277, 9135, 'W', 'S', 'Y', 4161, 'R', 5809, 823, 'R', 'e', 7693, 3467, 7795, 'm', 1729, 8601, 'Z', 'o']