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

Example Input: ['Y', 'Z', 'm', 'S', '3631', 'v', 'x', 5851, 615, 'm'], ['D', 'D', 'm', 'S', '3631', 'v', 'O', 'D']
Example Output: m, S, 3631, v

Example Input: ['q', 'O', 7981, 'U', 'V', 's', 't', 6911, 'i', 'K', 'O', 'F', 1359, 3839, 'g', '2555', 'H', '9877', 'Y', '3433', '5661', '2061', 'j', 'j', '2413', '3795', 'c', '6529', 'F', '1099', 'f', 'U', 'b'], ['V', 'D', '2555', 'H', '9877', 'Y', '3433', '5661', '2061', 'j', 'j', '2413', '3795', 'c', '6529', 'F', '1099', 'U', 'm', 8601, 881, 1009, 1759, 5669, 8581, 'm', 8715, 8913]
Example Output: 2555, H, 9877, Y, 3433, 5661, 2061, j, j, 2413, 3795, c, 6529, F, 1099

Example Input: ['M', 'h', 8607, 5737, 'R', 'i', 'S', 4579, 'J', '2863', '3951', 'n', '6573', 'i', '719', 'L', 'u', '8565', '3583', 'i', 'L', 1935, 9131, 'B', 6771, 'd'], ['C', 6881, 'f', 2241, 6423, 5087, 1453, 8727, 'p', '2863', '3951', 'n', '6573', 'i', '719', 'L', 'u', '8565', '3583', 'F', 'S', 2333, 6905, 'k', 869, 7133, 'D', 1879]
Example Output:
2863, 3951, n, 6573, i, 719, L, u, 8565, 3583