In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 'r', 4021, 'o', '4617', '269', 'x', '6665', 'q', 'O', 'x', '8179', '5427', '8813', 'Q', 'A', 't', 'h', 'Y'], ['r', 651, 'd', 'z', '4617', '269', 'x', '6665', 'q', 'O', 'x', '8179', '5427', '8813', 'j', 8569, 7287, 'n', 'J', 9269, 'P', 277]