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

Input: Consider Input: [4227, 9749, 'E', 6815, 4877, 1367, 'F', 'l', '4299', '8737', 'p', '4981', '55', 'w', '7071', '2225', '3843', '7029', 'j', 'L', 'K', 'X', 't', 3741, 'r', 's'], [5281, 5929, 'F', 'l', '4299', '8737', 'p', '4981', '55', 'w', '7071', '2225', '3843', '7029', 'j', 'L', 'E', 'D']

Output: F, l, 4299, 8737, p, 4981, 55, w, 7071, 2225, 3843, 7029, j, L

Input: Consider Input: ['k', 'l', 3761, 9679, 'Y', 'l', '1953', '7925', '8115', '5243', 'Y', '3939', '1231', 'Q', 'u', 5953, 5571, 'N'], [8981, 8379, 'h', 9701, 759, 'd', '1953', '7925', '8115', '5243', 'Y', '3939', '1231', 'l', 5705, 'P', 4009, 1189]

Output: 1953, 7925, 8115, 5243, Y, 3939, 1231

Input: Consider Input: ['J', 'H', 'F', 'r', 'b', 'c', 'o', 5865], ['R', 1639, 'F', 'r', 'b', 'H', 'd']
Output: F, r, b