In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['j', 'S', 'C', 1759, 'Y', 'w', 'X', 'E', '8515', '1683', '6471', 'I', 'q', 'h', 'v', 9197, 'v', 9635, 'c', 'P', 'Y'], ['Y', 4395, 2503, 'E', '8515', '1683', '6471', 'I', 'q', 'h', 'a', 9405, 4151, 9019, 'c', 5577, 'x']