In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['k', 1777, '1661', '53', 'F', '7003', 'm', 's', 'K', '1407', 'A', '8487', '8627', 'A', '3833', 'Z', 'r', 'y', 'a', 'B', 9523, 'c'], ['T', 's', 'A', 'O', 'C', 'M', 5077, 'u', 7579, 8073, 1083, 'j', 'f', '1661', '53', 'F', '7003', 'm', 's', 'K', '1407', 'A', '8487', '8627', 'A', '3833', 'd', 'p', 6117, 'q', 2287, 'D', 'W', 'W', 'q', 'K', 1437, 9535]