In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['z', 'T', 4563, 7597, 3511, 7975, 1643, 'Q', 3829, 'Z', '591', '2657', '3865', 'h', '581', 'L', '6331', 'P', 't', '5373', 'S', 'f'], ['O', 'h', 'f', 'S', '591', '2657', '3865', 'h', '581', 'L', '6331', 'P', 't', '5373', 'N', 'V', 'X', 3535, 'z', 8815, 's', 8177, 'b', 6773]