In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5859, 'q', 'b', 7681, 2845, 'H', 6379, 4405, 8721, 't', 'D', 4585, 37, 'g', 'B', 'c', 'e', 'w', 'H', 'y', '171', 'B', '3427', '267', '3631', 'n', '6453', 'a', 4885, 'E', 4931, 1901, 1087, 3707, 2665, 8713, 'k', 'D', 'C'], [9577, 9401, 'n', 'w', 9757, 7347, 't', 5403, 3221, 335, 2865, 'g', 'B', 'c', 'e', 'w', 'H', 'y', '171', 'B', '3427', '267', '3631', 'n', '6453', 'T', 'O', 'l', 4329, 7837, 2299, 'K', 'm', 'A', 'x', 'F', 'r', 'D']