In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['H', 3327, 'n', 'a', 4101, 'S', 'g', 627, '3575', 's', 'C', '3167', 'n', 'p', '197', 'T', 's', '2577', 'Y', 'e', 'p', 'o', 8081, 511, 'V', 'd', 'Y'], [5781, 7773, 345, 'U', 'p', 'O', 3683, '3575', 's', 'C', '3167', 'n', 'p', '197', 'T', 's', '2577', 'G', 4557, 1417, 5493]