In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1025, 7339, 'o', '5857', '2977', 'W', '3221', '6267', 'g', 'o', 'R', 'c', 9539, 3857], [4597, 'K', 'o', '5857', '2977', 'W', '3221', '6267', 'g', 'o', 'R', 'm', 'q', 7785, 559, 'L', 'u', 'e']