Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['Z', 'z', 'c', 3619, 1417, 4219, 'X', 7137, 1965, 1475, 4539, 7567, '9911', '5209', '7337', 'O', 'E', 'Z', '531', 'S', 'b', '8561', 'S', '1547', 'p', '3113', 'K', '1579', '7529', 'O', '8577', 'g', 's', '4563', 'I', 'y', 'J', 'Q', 'd', '4601', 'B', 'w', 'f', 5045, 5857, 'V', 8391, 6169, 's', 'W', 4579, 8385], [6093, 'v', 'A', 7291, 5057, 'x', 7867, '9911', '5209', '7337', 'O', 'E', 'Z', '531', 'S', 'b', '8561', 'S', '1547', 'p', '3113', 'K', '1579', '7529', 'O', '8577', 'g', 's', '4563', 'I', 'y', 'J', 'Q', 'd', '4601', 'B', 1221, 'K', 'p', 3827, 5967, 'N', 863, 'V', 'X', 'r', 'F', 9419, 'P', 2303, 6249, 4881, 1749, 'Q', 'V', 'Q', 4979, 1561, 'J', 'Y', 5687, 'J']
Output:
9911, 5209, 7337, O, E, Z, 531, S, b, 8561, S, 1547, p, 3113, K, 1579, 7529, O, 8577, g, s, 4563, I, y, J, Q, d, 4601, B