In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2591, 5145, 6683, 5265, 7489, 7979, 'S', 2339, 8079, 7449, 'V', 'D', 'J', 7383, 'R', 297, 'Y', 6211, 'i', 3325, 't', 1021, 8861, 'N', 971, 'a', 7059, 'z', 'x', 'U', 'h', '2539', '6197', '1117', '1', 'S', 'w', '6133', '1425', '8483', '5171', 'w', '671', '3647', '1687', '3649', '3713', '3341', '4733', 'k', '7267', '1375', '7509', '463', '7463', '5895', '5413', 'D', 'f', 'P', 669, 'R', 3925, 'c', 2127, 7885, 'a', 1055, 'H', 279, 'k'], ['t', 9647, 'U', 'h', '2539', '6197', '1117', '1', 'S', 'w', '6133', '1425', '8483', '5171', 'w', '671', '3647', '1687', '3649', '3713', '3341', '4733', 'k', '7267', '1375', '7509', '463', '7463', '5895', '5413', 'D', 'e', 6395, 'T', 5429, 587, 'w', 2779]