In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4007, 821, '7049', '1621', '4549', 'r', 'S', 8693], [1501, 7679, 'e', '7049', '1621', '4549', 'd', 'p', 7827]