Given the task definition and input, reply with output. In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

[7317, 8365, 'g', '513', '6379', '1987', 'c', 'S', 'T', 'g', '6367', 'z', '7373', '6437', '5791', 'c', '4761', 'z', 9055, 261], ['P', 'H', 9445, 'T', 'g', 8273, 'a', 'S', 4921, 'b', 'I', 9, 7785, '513', '6379', '1987', 'c', 'S', 'T', 'g', '6367', 'z', '7373', '6437', '5791', 'c', '4761', 'B', 'j', 'm', 'M', 1541, 'm', 'i', 4981, 9313, 5937, 973, 1849, 2469, 3227]
513, 6379, 1987, c, S, T, g, 6367, z, 7373, 6437, 5791, c, 4761