In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6823, 'g', 'J', 'a', 'S', 3413, 'C', 'p', 'n', 'p', 'e', 'X', 'm', 'h', '2477', '3885', 'Z', '2837', '3759', '1259', '5699', '6453', '469', 'u', 'R', 'D', '2501', '5233', '2751', '9909', '8085', '6193', 'A', 'R', '795', '2843', 'a', '9099', '7117', 'h', '9325', '6127', '5287', '8683', 's', 'r', 'B', 'x', 7555, 2655, 'A', 6589, 'x', 5893, 'X', 5747, 'z', 9971, 3041], ['F', 29, 'r', 'F', 'k', '2477', '3885', 'Z', '2837', '3759', '1259', '5699', '6453', '469', 'u', 'R', 'D', '2501', '5233', '2751', '9909', '8085', '6193', 'A', 'R', '795', '2843', 'a', '9099', '7117', 'h', '9325', '6127', '5287', '8683', 'W', 5273, 'f', 'c', 'B', 'h', 'u', 7563, 6441, 3321, 261, 'F', 'H', 1589, 'q']