Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['C', 'i', 'P', 7831, 3397, 'X', 7543, 'P', 'M', 'W', 'D', 'I', 'l', '9167', 'U', 'h', '1065', 'V', '9307', '1589', '5069', '1817', 'S', '975', '1559', '4979', '1581', '1409', 'G', 2861, 4505, 'o', 'v', 'x', 1067, 'S', 9703, 4841, 6643, 9989, 169, 9401], [1125, 6613, 'q', 'Y', 'S', 4337, 3687, 3783, 'h', 4531, 1165, 'l', '9167', 'U', 'h', '1065', 'V', '9307', '1589', '5069', '1817', 'S', '975', '1559', '4979', '1581', '1409', 'B', 'g', 9635, 't', 'Q', 85, 1725, 'h', 7997, 2363, 5289, 'X', 'J', 7053, 'a']
Output:
l, 9167, U, h, 1065, V, 9307, 1589, 5069, 1817, S, 975, 1559, 4979, 1581, 1409