Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['u', 'o', 'R', 3931, 'O', 'z', 'U', 'p', 8855, 'B', 'Q', 3521, 6215, 'U', 'b', 'p', 'd', '8627', '8771', 'o', '3129', 'P', 'x', '8527', '555', '9889', 'u', '9303', 'x', 'm', 's', '8405', '2011', '77', '5843', 'd', 5617, 549, 'c', 'J', 1001, 8221, 'T', 9547, 'm', 9027, 'K', 'c', 6383, 1093, 'd', 2083, 'z', 1611], ['z', 6253, 'j', 't', 4883, 'z', 5567, 9225, 8257, 9845, 'O', 9595, 5815, 'd', '8627', '8771', 'o', '3129', 'P', 'x', '8527', '555', '9889', 'u', '9303', 'x', 'm', 's', '8405', '2011', '77', '5843', 'b', 3621, 'g', 'I', 4027, 'Z', 7003, 6089, 'S', 4051, 3595]
Output:
d, 8627, 8771, o, 3129, P, x, 8527, 555, 9889, u, 9303, x, m, s, 8405, 2011, 77, 5843