In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 7631, 'L', 'f', 'X', 'z', 'O', 'd', 'R', 'c', '4487', 'o', '5681', '2859', 't', '3673', 'q', '1765', 'i', 'r', 'b', 'p', 'b', 'D', 8627, 'f', 'e', 5983, 5947, 'E'], ['C', 'w', 'Z', 'p', 9779, 201, 3487, 3961, 'C', 4565, 'e', 'Z', 'Y', 'O', 'd', 'R', 'c', '4487', 'o', '5681', '2859', 't', '3673', 'q', '1765', 'i', 'l', 6369, 8857, 'v', 'w', 5399, 789, 'X', 3617, 9149, 6787]