Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
See one example below:
Problem: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Solution: 8297, b
Explanation: Here, '8297, b' is the longest common subsequence in both the input lists [5797, 8817, '8297', 'b', 'U', 'b'] and [5843, 8809, '8297', 'b', 'W', 'C'].

Problem: [5335, 'a', 'x', 5797, 'X', 6313, 4265, 8329, 9791, 487, 's', 'O', 5381, 5171, 6539, 3955, 'n', 8009, 4789, 2959, 'j', 1671, 9271, 703, '7193', '9477', '9763', '7589', '6765', '6609', '485', 'i', '7025', 'O', 'N', '3711', 'J', 'U', 'g', 'P', 'B', '9301', 'f', 'W', 'L', '7781', '7857', 'V', 'V', 'V', '5623', '1795', 'd', 'z', 5485, 7981, 7521, 'o', 555, 7505, 'E', 'R', 'H', 10003, 'I', 8055, 7867, 8009, 'o'], [5283, 'N', 'H', 2521, 9639, 'I', 'I', 'h', 8973, 7435, 4303, 'w', 5603, 'c', 'R', 2211, 1801, 'O', 3421, '7193', '9477', '9763', '7589', '6765', '6609', '485', 'i', '7025', 'O', 'N', '3711', 'J', 'U', 'g', 'P', 'B', '9301', 'f', 'W', 'L', '7781', '7857', 'V', 'V', 'V', '5623', '1795', 'd', 'W', 8861, 9601, 'n', 'L', 7051, 6041, 8929, 'S', 3123, 'l', 'u']
Solution:
7193, 9477, 9763, 7589, 6765, 6609, 485, i, 7025, O, N, 3711, J, U, g, P, B, 9301, f, W, L, 7781, 7857, V, V, V, 5623, 1795, d