In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5821, 'e', 'B', 925, 'r', 3811, 's', 'q', 'f', 'B', 'U', 5247, 7303, '1039', 'S', 'q', '9925', '2243', '4761', '3375', 's', '5157', '7805', 'v', 'h', 'r', '7619', 'q', 'w', 2893, 'G', 9175, 6025, 'M', 1695], ['L', 4837, 'A', 'L', 10013, 'n', 1497, 'p', 'T', 'e', 2955, 'J', '1039', 'S', 'q', '9925', '2243', '4761', '3375', 's', '5157', '7805', 'v', 'h', 'r', '7619', 'q', 'M', 7151, 'e']