In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5807, 6451, 'h', 9429, '9735', 'G', 'N', '1795', '5075', 'i', 'l', 'a', 'Q', 'd', 'I', 'z'], [2167, 9277, 3211, 'N', 'C', 'T', '9735', 'G', 'N', '1795', '5075', 'i', 'l', 'n', 't', 845]