In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['z', 863, '5397', 'W', 'L', 'e', 'q', 'd', '6335', '1161', '4515', '3625', '8451', 'J', 'J', 'C', 'V', 4263, 6213, 3785, 'z', 8797, 'e', 'R', 'o', 'Z', 'D'], ['J', 'M', 'z', 5879, 4563, 'd', 'p', '5397', 'W', 'L', 'e', 'q', 'd', '6335', '1161', '4515', '3625', '8451', 'J', 'J', 't', 9643, 7227, 'V', 'L', 't', 2797, 7973, 'D', 2105, 7221, 'x']