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

Example Input: ['U', 1887, '8423', 'j', '8053', 'g', '5441', 'H', 'j', 3847, 'd', 'J', 1971, 'M'], ['y', 'T', 'C', 'z', 6299, 5393, '8423', 'j', '8053', 'g', '5441', 'H', 'x', 'f', 4189, 'h', 'e', 6577]
Example Output: 8423, j, 8053, g, 5441, H

Example Input: ['d', 2317, 'y', 8487, 'r', 4789, 5525, '3961', '1747', 'v', '7423', '847', 'a', '4969', 'T', 'L', '5383', 'W', 'U', 5749, 9533, 'T', 'Z', 'x'], [1401, 'F', 9303, 'w', 4629, 9053, 'k', 7351, 1261, '3961', '1747', 'v', '7423', '847', 'a', '4969', 'T', 'L', '5383', 'o', 'q']
Example Output: 3961, 1747, v, 7423, 847, a, 4969, T, L, 5383

Example Input: ['M', 6979, 'd', 'h', 'm', 'a', 'r', '545', 'i', '9979', 'K', '2177', '9229', 'N', 9525], ['c', 5971, 'q', 'g', 2165, 'r', '545', 'i', '9979', 'K', '2177', '9229', 'R', 'F', 6599, 'l', 3125, 5661]
Example Output:
r, 545, i, 9979, K, 2177, 9229