Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [2407, 'i', 't', 3475, 'J', 'o', 1369, 9451, 'v', 'e', 6397, 6565, 'v', 'a', 'G', 'W', 1583, 7257, 1777, 8587, 5163, 9847, 'g', 851, 'I', 'p', '425', 'W', 'r', 'A', 'q', '7369', 'R', 'r', 'S', 'B', '1065', '841', '4101', '1905', 'm', '5001', 'd', '2557', '9291', '4305', '5783', '3873', 'i', '391', '6515', 'O', '7073', '703', '4301', 'r', 'n', 'U', 4567, 25, 'b', 1157, 1043, 4653, 3977, 1797, 2393, 'y', 8793, 'm', 2827, 6899, 'b', 'K', 'Q', 6157, 'v', 'O', 'S', 4659, 2129], [1169, 'D', 'r', 'l', 9601, 4891, 8907, 'y', 769, 'J', 2631, 2231, 9, 'E', 'z', 'M', 'n', 7339, 8707, 'y', 1655, 'd', 'R', 'M', 'Z', 's', 'p', '425', 'W', 'r', 'A', 'q', '7369', 'R', 'r', 'S', 'B', '1065', '841', '4101', '1905', 'm', '5001', 'd', '2557', '9291', '4305', '5783', '3873', 'i', '391', '6515', 'O', '7073', '703', '4301', 'V', 'l', 4175, 'h', 'V', 239, 3855, 'M', 9113, 1347, 6325, 'q', 'w', 8997, 'J', 2667, 9693, 5945, 'V', 7819, 'u', 'a', 'o']
Output:
p, 425, W, r, A, q, 7369, R, r, S, B, 1065, 841, 4101, 1905, m, 5001, d, 2557, 9291, 4305, 5783, 3873, i, 391, 6515, O, 7073, 703, 4301