In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5635, 8587, 'L', 'E', 'z', 'u', 5487, 't', 'm', 'A', 'r', '3833', 'm', 'W', '673', 'x', 'b', '1609', '9063', 'r', '8373', 'F', '2303', '5131', 'T', 'X', 'P'], [773, 1875, 357, 'Z', 'J', 1539, 't', 'm', 'A', 'r', '3833', 'm', 'W', '673', 'x', 'b', '1609', '9063', 'r', '8373', 'F', '2303', '5131', 'f', 'v', 'n', 'W', 'U', 5875]