In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['D', 'J', 'g', 'f', 'J', 'u', 1047, 7527, 'H', 'X', 6153, 'w', 1193, 'Q', 'a', 'a', 'b', 'H', 'v', 'B', '4669', 'E', 'b', '19', '1195', '5783', 'N', 4559, 'l', 4057, 6763, 'Z', 7969], ['u', 'T', 'Y', 7427, 2643, 'M', 3975, 'm', 'Q', 'a', 'a', 'b', 'H', 'v', 'B', '4669', 'E', 'b', '19', '1195', '5783', 'f', 'A', 'B', 'z', 439, 3891, 387]