In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9599, 347, 5465, 2521, 'l', 7587, 1433, 9069, 'Y', 'k', 'x', '5321', '3011', 'c', '2983', '1547', 'c', '5851', 'h', 's', 't', '9657', '2727', 'U', 4717, 'l', 'z', 1227, 683, 2443, 'X', 4291, 1835, 287], [8039, 'M', 7003, 'z', 'D', 'x', '5321', '3011', 'c', '2983', '1547', 'c', '5851', 'h', 's', 't', '9657', '2727', 'u', 6283, 'z', 9255, 5459, 7683, 'C', 8413, 7431, 'J', 3347]