In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 9591, 2975, 7589, 'm', 'v', 461, 1667, 'l', 'v', 3131, '3755', '5935', 'h', '1395', '1399', 'z', 'X', '6499', '6941', '6323', 'd', '8723', '6763', 'z', '4709', 'a', 'w', 'S', 't', 7491, 3629, 3629, 'w', 'c', 'Q', 'k', 'F', 'p', 6311, 9593, 'b', 'G', 'Q', 'g'], [2197, 'C', 'a', 'x', 'H', 'Z', 2611, 4341, 'E', 8417, 6495, 9597, 'T', 'A', 'T', '3755', '5935', 'h', '1395', '1399', 'z', 'X', '6499', '6941', '6323', 'd', '8723', '6763', 'z', '4709', 'a', 'w', 'J', 3849, 3713, 'U', 3167]