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

Input: Consider Input: ['J', 'h', '8587', 'b', 't', 'k'], [8955, 7253, '8587', 'b', 'e', 8655]

Output: 8587, b

Input: Consider Input: [3535, 10023, 'g', 'B', 'E', 'p', 'K', 'y', 1187, 5353, 8779], [1169, 981, 'B', 'E', 'p', 'K', 'D', 'h', 4145, 'h']

Output: B, E, p, K

Input: Consider Input: ['C', 'l', 7965, 'E', 9403, 8385, 2905, 'f', 9235, 'a', 'M', 'e', 'o', '7599', '631', 'X', '1093', '3229', '6731', '1295', 'W', '6515', 'G', '3063', '1023', 'o', 'm', '9855', '695', '8107', '6183', '2361', 'M', 'R', 'X', 7591, 'l', 'E', 4711, 'O', 'j', 761, 9157, 4407], ['r', 'J', 8989, 4791, 'P', 'b', 'K', 'j', 'a', 9633, 7431, 'e', 'o', '7599', '631', 'X', '1093', '3229', '6731', '1295', 'W', '6515', 'G', '3063', '1023', 'o', 'm', '9855', '695', '8107', '6183', '2361', 'M', 'R', 'G', 2383, 4343, 277, 'k', 8697, 'C', 2417, 2495, 2661, 9799, 5347, 387, 'Z', 'n', 's', 59, 6511, 4143]
Output: e, o, 7599, 631, X, 1093, 3229, 6731, 1295, W, 6515, G, 3063, 1023, o, m, 9855, 695, 8107, 6183, 2361, M, R