In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['P', 'd', 1789, 'B', 'O', '7875', 'H', '6523', 'c', 'Y', 8981], ['T', 'p', 'U', 8591, 'j', 'y', 'B', 'O', '7875', 'H', '6523', 'c', 'P', 3179, 'G', 609, 'm']