Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['L', 9767, 7049, 3697, 1735, 'Q', 'v', 'x', 'N', 8609, 'I', 315, 1843, 'i', 'f', '7731', 'c', 'T', '9815', '917', 'J', 't', 'B', 't', '9733', 'i', '1007', 'J', '3727', 'N', '7275', 'I', 'b', 'f', '5043', '1545', 'R', 's', 'S', 'F', 8745, 517, 1997, 8745, 1381, 9267, 'W', 'A', 'r', 'i', 'V', 'v', 1719, 'b', 'z', 3547, 'S', 'F', 1503], [9177, 'x', 'T', 7383, 'M', 'Q', 1703, 'm', 'm', 'J', 'r', 'Q', 'O', 'N', 'J', 4781, 'f', '7731', 'c', 'T', '9815', '917', 'J', 't', 'B', 't', '9733', 'i', '1007', 'J', '3727', 'N', '7275', 'I', 'b', 'f', '5043', '1545', 'R', 'f', 's', 3173, 2219, 9807, 3003, 4835, 1817, 'V', 'h', 'I', 'U', 9371, 'T', 'K', 'C', 1097, 5555, 8085, 475]
Output:
f, 7731, c, T, 9815, 917, J, t, B, t, 9733, i, 1007, J, 3727, N, 7275, I, b, f, 5043, 1545, R