In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1691, 'p', '5875', '6143', 'm', 'i', 'X', 'f', '1095', 'm', 'k', '5083', '7285', 'f', 's', 8787, 3937, 'd', 'J', 7313, 8061, 5855, 1843, 1043, 3167], ['z', 'R', 4957, 'K', 'N', 'u', 6201, '5875', '6143', 'm', 'i', 'X', 'f', '1095', 'm', 'k', '5083', '7285', 'f', 'I', 'K', 2161, 8299, 'l', 5461, 'r', 7637]