In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3091, 'w', 'y', 2503, 783, 8097, 'r', 'M', 'x', 'j', '575', '8573', '4367', 't', 'H', '9555', '8325', 'L', '4487', 'g', '6835', 'c', '3407', 'R', 'c', '831', 'y', 'e', 'S', 8193, 153], [5509, 7849, 'A', 'T', 2787, 3457, 'p', 4915, 'w', 'x', 'j', '575', '8573', '4367', 't', 'H', '9555', '8325', 'L', '4487', 'g', '6835', 'c', '3407', 'R', 'c', '831', 'y', 'a', 9997, 'i', 997, 6319]