Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [6133, 3557, '8701', '405', 'z', 'K', '6141', 'K', 'O', 9247, 'I', 'p'], [2609, 8547, 2063, 9727, '8701', '405', 'z', 'K', '6141', 'd', 9229]
Output:
8701, 405, z, K, 6141