In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['O', 5107, 'U', 27, 'a', 3399, 'S', 'g', 'X', 'J', 'S', '7375', '3983', 'G', '303', 'l', '8833', 'P', '4621', '4465', 'f', 'F', 2885, 1059], [7955, 1005, 'Y', 'h', 'R', 't', 9877, 6291, 'S', '7375', '3983', 'G', '303', 'l', '8833', 'P', '4621', '4465', 'f', 'u', 'S']