Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [521, 6401, 5909, 'f', 2903, 2531, 'A', 4639, 4041, 7601, 'c', 'b', 'g', 5165, 1713, 5741, 'k', 'D', 6493, 'V', 285, 6243, 8517, 6481, 7451, '3113', 'j', '7271', '6885', 'j', '3543', 'K', '6229', 'x', 'v', 'c', 'X', 't', '2269', '6005', 'W', 'W', 'l', '1597', 'Y', 'V', '3659', '4693', '5869', '4341', 'O', 4229, 387, 'S', 4777, 4757, 2287, 'X', 9713, 'Y', 'T', 'c', 'P', 'g', 8419, 'H', 'w'], [779, 9167, 'P', 6433, 'J', 2857, 1633, 'I', 4981, 'I', 2269, 'B', 'c', '3113', 'j', '7271', '6885', 'j', '3543', 'K', '6229', 'x', 'v', 'c', 'X', 't', '2269', '6005', 'W', 'W', 'l', '1597', 'Y', 'V', '3659', '4693', '5869', '4341', 'k', 'T', 4865, 8767, 8833, 8197, 'Y', 'x', 'G', 'h', 'o', 'C', 3771, 7409, 6685, 'k', 2927, 4051, 'n', 'M', 'W', 'K', 'H', 'd', 7323]
Output:
3113, j, 7271, 6885, j, 3543, K, 6229, x, v, c, X, t, 2269, 6005, W, W, l, 1597, Y, V, 3659, 4693, 5869, 4341