In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3499, 'i', 'm', 'z', '9433', 'l', 'O', 'R', '3807', 'O', 'Y'], ['o', 'f', 9669, 'z', '9433', 'l', 'O', 'R', '3807', 'e', 'Z']