In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['U', 'a', 'P', 1245, 1707, 7557, 'l', 2001, 'X', 245, 5937, 'K', 'm', 'P', 'd', 'u', 8869, 3573, 's', 275, 9879, 'M', '8693', 'g', 'x', 'u', '3577', 's', 'S', '937', '1781', 'K', '5591', '4901', 'L', 'p', 'c', 'e', 'P', 'F', 'X', '5057', '3761', '6079', '1027', 'h', 'F', 6829, 8897, 5045, 815, 'z', 'r', 'S'], [8141, 1673, '8693', 'g', 'x', 'u', '3577', 's', 'S', '937', '1781', 'K', '5591', '4901', 'L', 'p', 'c', 'e', 'P', 'F', 'X', '5057', '3761', '6079', '1027', 'h', 't', 769, 'Y', 'Y', 9829, 5141, 'h', 2695, 'Y', 1919, 'N', 6217, 1025, 'K', 9511, 'd']