In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['f', 4503, '2975', '3109', '1947', 'z', 7349, 1769], [4959, 8977, '2975', '3109', '1947', 'd', 2747, 'Q']