In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1661, 2789, 'B', 5143, 'o', 'x', 9571, 'W', 'A', 'Z', 'f', '9323', 'A', '6003', '397', '4999', '3085', '5157', 'Q', 's', 'o', 'W', '4161', '8069', '687', '4361', 'P', 'y', 'r', 'q', 'A', 'h', 4327, 'G', 7887, 1237, 'H', 'S', 3405], [2399, 'h', 2137, 2907, 'f', '9323', 'A', '6003', '397', '4999', '3085', '5157', 'Q', 's', 'o', 'W', '4161', '8069', '687', '4361', 'P', 'y', 'L', 7875, 765, 'T', 'y', 4775, 'O', 2177, 'J', 'c', 3797, 1237, 'p', 933, 'E', 2877]