In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['V', 9077, 'o', 1329, 'T', 1773, 'p', 739, '2643', '6597', '9663', '8537', '2997', 'H', 'O', 'C', '8871', 'e', 'W', 4645, 'g', 'g', 'c', 4585, 'B', 787], [5925, 1575, 5487, 'a', 2739, 1107, 'R', 'Q', '2643', '6597', '9663', '8537', '2997', 'H', 'O', 'C', '8871', 'e', 'g', 'P', 'h', 6259, 1467]