In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5617, 'R', 2521, 'g', 'J', 'e', 'U', 'j', 'F', '793', '2397', '3595', 'D', 'Q', '3079', 'K', 'p', 'Y', 'r'], ['u', 341, 501, 'S', 'P', 'B', 1267, 1487, 4229, 'E', 'e', 'U', 'j', 'F', '793', '2397', '3595', 'D', 'Q', '3079', 'K', 'p', 'Z', 'E', 'u', 'n', 'W']