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

Example Input: [7485, 'Y', 'T', '5979', 'w', 'Q', 'e'], [1525, 4389, 'm', 'T', '5979', 'w', 'w', 1497, 8995]
Example Output: T, 5979, w

Example Input: ['p', 9773, 'Y', 'o', 'w', 's', '583', 'e', '2773', '9925', '8535', 'M', '9831', 'V', 'q', 'S', 5087, 'M', 7601, 'D'], [7787, 'l', 'o', 'w', 's', '583', 'e', '2773', '9925', '8535', 'M', '9831', 'V', 'q', 'X', 'W', 3163, 'f', 5201]
Example Output: o, w, s, 583, e, 2773, 9925, 8535, M, 9831, V, q

Example Input: [977, 'j', 5039, 'V', 1869, 6695, 'i', 'E', '8041', 'x', '3629', '6021', 'P', '1481', 'W', 'q', '10019', 'J', 'j', 'l', 5079], [845, 'O', 1857, '8041', 'x', '3629', '6021', 'P', '1481', 'W', 'q', '10019', 's', 'z', 's', 7411, 8977, 531, 'Z', 'z']
Example Output:
8041, x, 3629, 6021, P, 1481, W, q, 10019