In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7177, 'c', '3687', 'A', 'Y', '7835', '8835', '1807', '8901', 'A', '3377', '5031', 'Y', '165', 'H', 'Q', 'y', 'Y', 'b', 'O', '3733', '3115', '9255', 'W', 'G', 9163, 'j', 'j', 7679, 'Q', 3835, 2633], ['A', 2665, 371, '3687', 'A', 'Y', '7835', '8835', '1807', '8901', 'A', '3377', '5031', 'Y', '165', 'H', 'Q', 'y', 'Y', 'b', 'O', '3733', '3115', '9255', 'C', 'Y', 3299, 'P', 4235, 3999, 4617, 'S', 'l', 387, 5591]