In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1107, 'g', 'c', 343, 5809, 817, 'Z', 2205, 'Z', '5223', 'f', '3995', 'p', '3983', 'Q', 'Y', 'K', 'y', 'G', 'U', 'X', 'l', 'Z', 8283], ['g', 'U', 'p', 'Z', '5223', 'f', '3995', 'p', '3983', 'Q', 'Y', 'B', 5759, 'U', 2073, 'Y', 3767]