In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5077, 'K', 6599, 'l', 1855, 19, 'B', 9139, 'g', 7457, 367, 'J', 47, 'e', '9779', '9095', 'r', 'U', 'N', 'o', 'v', 'C', '7769', '289', '5657', '3589', '9583', 'E', '7479', '7435', '7405', '6483', 'a', 't', 'e', 'O', '5173', 'F', 7833, 6337, 'f', 'u'], [7199, 'u', 5237, '9779', '9095', 'r', 'U', 'N', 'o', 'v', 'C', '7769', '289', '5657', '3589', '9583', 'E', '7479', '7435', '7405', '6483', 'a', 't', 'e', 'O', '5173', 'S', 'k', 'F', 7635, 1977, 'Z', 'Q', 4005, 'x', 'G', 1057, 'x', 'q', 'M', 4197, 'A']