In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['N', 4709, 'W', 4999, 'P', 5583, 2701, 6407, 'g', 4361, 5073, 1629, 'P', 'z', 'P', '5235', 'x', '7877', 'V', 'c', 'w', 'V', '8799', '9063', '1631', '2091', 'Y', 'u', 1513, 6197, 'p', 'r', 8287, 'r'], [469, 'm', 7289, 8973, 1287, 'z', 'P', '5235', 'x', '7877', 'V', 'c', 'w', 'V', '8799', '9063', '1631', '2091', 'r', 'u', 'W', 1481, 'J', 'w', 'H', 'z']