Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['T', 1053, 'j', '6131', '2521', 's', 'K', '4081', 'b', 's', '7977', '8247', '6879', '9999', 'R', 'J', '523', 'I', 'l', 'V', 7915, 7561, 1643, 1377, 1007], ['m', 1385, 'R', 3193, 'W', 'U', 'X', 'A', 2615, 'j', 'W', 4351, 773, 'j', '6131', '2521', 's', 'K', '4081', 'b', 's', '7977', '8247', '6879', '9999', 'R', 'J', '523', 'I', 'm', 2467, 'j', 5001, 6957, 'A', 'H', 'Q', 'c', 'Y', 'e']
Output:
j, 6131, 2521, s, K, 4081, b, s, 7977, 8247, 6879, 9999, R, J, 523, I