In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9077, 'd', 543, 'Z', 'Z', 'a', 3003, 'R', 'j', 'h', 'y', 'q', '1585', '2009', 'u', '1227', 'x', 'W', '6213', '525', '8707', '3003', 'f', '4379', 'g', 'S', '3565', '3785', 'J', 'i', 'I', 'U', 's', 'k', 'O', 7515, 4949, 'Z', 'v', 4271], [1507, 'b', 's', 'm', 5063, 'A', 'k', 8227, 2809, 3949, 'q', 967, 2911, 'T', 4061, 5811, 1377, 'y', 'q', '1585', '2009', 'u', '1227', 'x', 'W', '6213', '525', '8707', '3003', 'f', '4379', 'g', 'S', '3565', '3785', 'J', 'i', 'e', 'C', 'e', 'y', 3147, 'N']