In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5687, 947, 8057, 's', '5573', 'E', '3655', 'c', 'm', 'z', 'e', '2595', '3021', '339', 'W', '8711', 'e', 'b', 'S', 'Z', 'C', 'v', 'H', 'f', 'X', 3493, 365], [4969, 7683, 1765, 4047, 'P', 'X', 'T', 'X', 'V', 'z', '5573', 'E', '3655', 'c', 'm', 'z', 'e', '2595', '3021', '339', 'W', '8711', 'e', 'A', 'J', 'U', 8117, 3129, 8143, 'R', 5035, 9629, 'A', 6959]