In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Input: Consider Input: ['s', 'u', 'I', 't', '5653', '1351', 'p', 'n', 'V', '4089', '3689', 'D', '8733', 'e', 'h', '7295', '3557', 'i', '3711', '953', '1577', '2329', '261', '559', 'J', 'n', 'V', 7375, 'p'], ['a', 7915, 'C', 'G', 7485, 1217, 'k', 'w', 'Z', 7599, 'E', '5653', '1351', 'p', 'n', 'V', '4089', '3689', 'D', '8733', 'e', 'h', '7295', '3557', 'i', '3711', '953', '1577', '2329', '261', '559', 'J', 'n', 'Z', 7089, 'N', 1657, 'T', 5555, 5727, 1115, 'G', 'e']

Output: 5653, 1351, p, n, V, 4089, 3689, D, 8733, e, h, 7295, 3557, i, 3711, 953, 1577, 2329, 261, 559, J, n

Input: Consider Input: ['W', 'A', '5747', 'i', 'M', 'N', 8861], [1997, 'D', 5205, '5747', 'i', 'M', 'D', 3319, 1895]

Output: 5747, i, M

Input: Consider Input: ['F', 1427, 4291, '4507', 'E', '9405', '1659', '10017', '5615', 'r', '4351', '1217', 'k', '9747', 'i', '7927', '4555', '8517', '67', 'N', '9603', '4467', 'z', 'J', 9213, 'v', 997, 3693, 'z', 'Z', 'j'], [5711, 'k', 'd', 'a', 'z', '4507', 'E', '9405', '1659', '10017', '5615', 'r', '4351', '1217', 'k', '9747', 'i', '7927', '4555', '8517', '67', 'N', '9603', '4467', 'z', 'H', 'd', 2535, 'D']
Output: 4507, E, 9405, 1659, 10017, 5615, r, 4351, 1217, k, 9747, i, 7927, 4555, 8517, 67, N, 9603, 4467, z