In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6023, 8911, 'R', 'y', 'y', 'o', '4097', '9873', 'P', 'a', 'd', '8775', 'b', 'Q', 'a', 'u', '3135', '7823', '1751', 'i', 'o', 'g', 'R', 'd', 8983, 3135, 'w', 'w', 'b'], [1509, 'C', '4097', '9873', 'P', 'a', 'd', '8775', 'b', 'Q', 'a', 'u', '3135', '7823', '1751', 'm', 2039, 's', 3537, 4607, 2837, 'b', 'f', 569, 'Z', 6227, 'x', 6343]