In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['U', 6217, 3273, 4433, '2195', '6107', 'O', 'g', 'I', '5535', 'b', 's', 'w', 'G', 'T', 'u', 'R', 'c', '5175', 'k', 'b', 709, 199], [2373, 'R', '2195', '6107', 'O', 'g', 'I', '5535', 'b', 's', 'w', 'G', 'T', 'u', 'R', 'c', '5175', 'Y', 'a', 8677, 'w', 7403, 'w', 267, 3013, 5487, 'B']