In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9335, 'Q', 'Y', '9499', '7179', '4355', 'r', 1961, 5063], ['G', 'R', 'Y', '9499', '7179', '4355', 'w', 6831, 'O']