In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8535, 1643, 'X', 'k', '241', 'R', 'x', 'd', 8299, 'd', 'k'], [3915, 7499, 1413, 6217, 'X', 'k', '241', 'R', 'x', 'z', 3369, 'O', 'g', 'B']