In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6187, 'd', 'R', 2737, 703, 'o', 'U', 'I', '1629', '8169', 'b', 'G', '1459', '9543', 'g', 'M', '9327', 'j', 'I', 3283, 'c', 2321, 5555, 5219, 'N', 'Y', 4397, 7501, 'G'], [4835, 'l', 'E', 5919, 'U', 'I', '1629', '8169', 'b', 'G', '1459', '9543', 'g', 'M', '9327', 'j', 'U', 'N', 1551, 'Z', 6185, 'q', 'S', 'Z', 6663, 7591]