In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[943, 4963, 'N', 'x', 'M', '6061', '3523', 'i', '5889', '6055', '7889', 'I', '9959', '2815', 'R', '2373', '325', 'D', 'd', 'Q', '5401', 'M', 'P', 'm', 5031, 'z', 3853, 'A', 4083, 'X', 5771], [2777, 'b', 'P', 'i', 'B', 'x', 9983, 'g', 'x', 9013, 4895, 7861, 'F', 'd', 3881, 4959, '6061', '3523', 'i', '5889', '6055', '7889', 'I', '9959', '2815', 'R', '2373', '325', 'D', 'd', 'Q', '5401', 'M', 'O', 'p', 'O', 6571, 735, 'n', 3455, 'I', 2715, 'F', 'g', 'C', 'm', 'Y']