In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 'g', 'G', 'x', 'Z', '5969', '1011', 'x', '3873', '9319', '6691', 'P', 't', 'o', 5945, 'L', 'D', 6741], ['V', 6061, 1145, 8363, 't', 'm', 3695, 'G', 'x', 'Z', '5969', '1011', 'x', '3873', '9319', '6691', 'H', 1323, 'f', 'y', 4227, 3433, 787]