In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3197, 'A', 1579, 'S', 9417, 'V', 10017, 'A', 2177, '5523', 'A', 'x', 'Q', '5575', '1223', '363', 'B', 'R', 'b', '6087', 'Z', '1189', '1051', 'W', '6123', '9905', 'I', 'r', 773, 3779, 9867, 7249, 'U', 8311, 4745, 8619, 5063, 6081, 's'], ['w', 'X', 1099, 'i', 'R', 'g', 2873, '5523', 'A', 'x', 'Q', '5575', '1223', '363', 'B', 'R', 'b', '6087', 'Z', '1189', '1051', 'W', '6123', '9905', 'e', 2759]