In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9709, 'P', 205, 879, 8641, 989, 4877, 'C', 'O', 'w', '197', '6171', 'D', 'n', '9617', '7071', 'W', 8973, 3639, 'a', 'Y', 9707, 'J'], ['Q', 5879, 325, 'o', 'C', 'C', 'r', 2725, 7709, 'C', 'O', 'w', '197', '6171', 'D', 'n', '9617', '7071', 'f', 9741, 1041, 1977]