Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5861, 'Z', 1225, '3813', '8297', 't', '9301', 'd', 9323, 825], [5491, 'a', '3813', '8297', 't', '9301', 'Y', 'L', 'j', 5005]
Output:
3813, 8297, t, 9301