In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1797, 8099, 'K', 'o', 'Y', 'm', 'I', 'r', '5111', '6707', 'N', 3433, 9993, 5829, 'R'], ['r', 's', 'q', 'm', 'I', 'r', '5111', '6707', 'u', 'c', 779, 'd', 'A']