In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

['L', 4389, 3457, 'E', 'F', 'f', 'q', '3059', 'P', '4067', '3589', '9323', '571', 'y', '5869', '7855', '2031', 'Z', 'S', 9165, 7681, 'M', 'm', 5417, 1395, 'g', 'M', 3487], ['F', 8071, 'P', 'f', 'q', '3059', 'P', '4067', '3589', '9323', '571', 'y', '5869', '7855', '2031', 'x', 4727, 9725, 'R', 8887, 'R', 7887, 3039, 'c', 7927, 'j']
f, q, 3059, P, 4067, 3589, 9323, 571, y, 5869, 7855, 2031