In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8835, 7931, 6729, 6437, '1995', '7773', 'g', 'x', 'f', 'f', 't', 9413], ['V', 5205, '1995', '7773', 'g', 'x', 'A', 3797]