In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['s', 4019, 'Q', 5231, 5797, 'b', 623, '165', 'T', 'Q', 'U', 'v', '6743', '6131', 'c', 'A', 't', 'G'], [27, 7229, 'g', 2733, 'T', 'S', '165', 'T', 'Q', 'U', 'v', '6743', '6131', 'c', 'R', 6933, 7131, 1077, 'Z']