In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8473, 'h', 5863, 4265, 5427, 5427, 479, 'Q', 395, 3641, '5887', '6537', '2305', '731', '597', 'm', 'J', 'z', 'N', 'Z', '3855', 'y', 's', '7367', '4921', 'A', '663', '6121', 'd', 's', 'R', '5109', '1879', '4669', '6827', 'F', '4543', '1683', 'M', 'X'], [6097, 'x', 5773, 'v', 'p', 6543, 'u', 5505, 'D', 7629, 'z', 8339, 'X', 'F', 'W', 'E', 'B', 'B', 'z', 1163, 1451, 8283, 1877, '5887', '6537', '2305', '731', '597', 'm', 'J', 'z', 'N', 'Z', '3855', 'y', 's', '7367', '4921', 'A', '663', '6121', 'd', 's', 'R', '5109', '1879', '4669', '6827', 'F', '4543', '1683', 'Z', 1267, 8165, 'Z', 2795, 9719, 'Q', 433, 'S', 'c', 7711, 1169, 9995, 'r', 'k', 4917, 6789, 7221, 'g', 7901, 'J', 'v', 721, 'x', 7733, 'Y']