In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[977, 'j', 5039, 'V', 1869, 6695, 'i', 'E', '8041', 'x', '3629', '6021', 'P', '1481', 'W', 'q', '10019', 'J', 'j', 'l', 5079], [845, 'O', 1857, '8041', 'x', '3629', '6021', 'P', '1481', 'W', 'q', '10019', 's', 'z', 's', 7411, 8977, 531, 'Z', 'z']