In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6711, 'g', '4381', '3231', 'S', '9809', 'p', '6459', 'c', '8149', 'g', '2841', 'k', 'Q', '9055', '515', 'i', 'o', 'l', 'N', '1205', '5185', '9045', '1563', 'M', 'G', '8871', 'G', 'S', 4073, 6561, 'r', 8147, 9903, 'j', 'N', 'z', 'E', 1559], ['K', 5325, 'q', 'K', 8407, 483, 'h', 'z', 797, 7119, 3083, '4381', '3231', 'S', '9809', 'p', '6459', 'c', '8149', 'g', '2841', 'k', 'Q', '9055', '515', 'i', 'o', 'l', 'N', '1205', '5185', '9045', '1563', 'M', 'G', '8871', 'T', 'O', 'A', 'n', 389, 'B', 'i', 'Q', 's', 'S', 'V', 5597, 7819, 'd', 2957, 'U', 8161]