In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1387, 'V', 'J', 2387, 905, 'k', 6665, 4039, 't', 4183, 7831, 'i', '6139', '9593', '3649', '7651', 'K', '1039', '2509', 'H', 'u', 'K', 'V', 'X', 'K', 'r', 'D', 'c', 'c', 'a', 7315, 'x', 'M', 6027, 3431, 5657, 7065, 'R'], [6191, 6925, 'o', '6139', '9593', '3649', '7651', 'K', '1039', '2509', 'H', 'u', 'K', 'V', 'X', 'K', 'r', 'G', 'b', 8299, 'R', 6407, 5467, 8787, 9349]