In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8163, 2859, 7677, '2413', 'K', '7231', 'l', 'r', 'g', 'S', 'T', 'A', '7627', 'O', 'X', '9665', 'N', 'G', 'q', 'Q', 'v', 1259, 'p', 3785, 'i', 247, 'B', 8157, 2227], ['V', 4395, 'V', 6529, 'j', 'Z', 2901, 5113, 9773, 'm', '2413', 'K', '7231', 'l', 'r', 'g', 'S', 'T', 'A', '7627', 'O', 'X', '9665', 'N', 'G', 'q', 't', 5107, 8693, 9703, 'K', 'V', 7813, 'l', 'Y', 'l', 't', 7255]