Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['N', 'E', 8043, '8661', 'v', '9567', '9295', '8959', '3533', 'q', 447, 'S'], ['y', 2551, 'Q', '8661', 'v', '9567', '9295', '8959', '3533', 'U', 'W', 'd', 697, 1513]
Output:
8661, v, 9567, 9295, 8959, 3533