In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 5781, 'N', 1027, 'Q', 5833, '4299', 'S', 'h', 'A', 'g', '4263', 'p', '2735', '2749', '7789', 'I', '9601', '8977', '2003', 'M', '1535', 'A', '4479', '3931', '1163', 'C', 'Z', 'k', 2711, 'Z', 'p', 'T', 4563, 'o', 6271, 'W', 4725, 7497, 6267, 'I', 'R', 'm', 'D', 1501, 'S', 'P', 4801, 'm'], ['y', 'I', 3489, 'u', 'H', 6483, 167, 1103, 'd', 'v', 2575, '4299', 'S', 'h', 'A', 'g', '4263', 'p', '2735', '2749', '7789', 'I', '9601', '8977', '2003', 'M', '1535', 'A', '4479', '3931', '1163', 'C', 'Z', 'X', 'M', 'Y', 6157]