In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7795, 'C', 'o', 8593, 'H', 'H', 9573, 'l', 'D', 9575, 'q', '3469', '3469', 'i', '7361', '1585', 'P', '2685', 'S', '51', 'P', 'V', 'Y', 'p', 5793, 8385], [9231, 5395, 2883, 2349, 9965, 5453, 't', 2189, 'q', '3469', '3469', 'i', '7361', '1585', 'P', '2685', 'S', '51', 'P', 'V', 'Y', 'h', 9317, 'o', 'R', 'w', 'a', 'B', 305, 'O', 3835, 'O', 2363]