In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[165, 'W', 'H', 'p', 'w', 'U', 'L', 'S', '4977', '9777', '2201', '8303', '1823', 'S', '1475', '4837', 'N', 4991], ['T', 'l', 'V', 209, 9783, 'E', 953, 'z', 'y', 'U', 'L', 'S', '4977', '9777', '2201', '8303', '1823', 'S', '1475', '4837', 'D', 2023]