In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 'X', 5323, 'B', 'w', '9499', '8291', 'S', '2583', 'J', 5143], ['i', 'O', 'w', '9499', '8291', 'S', '2583', 'O', 'I', 'B', 2643, 'x']