In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6947, 2807, 'Q', '6825', 'C', '1665', '7971', '5643', '897', 'J', 'V', 9495], ['r', 'm', 7317, 6065, 1419, '6825', 'C', '1665', '7971', '5643', '897', 'J', 'k', 7655, 'i', 'g', 'Y']