In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[323, 'g', 7063, 'p', 'f', 'd', 5331, 'b', 'm', '7269', 'X', '9669', '4009', '3797', '6363', '4747', 'W', 'I', 1487, 'X', 'h', 7741], ['G', 'o', 6629, 'b', 'm', '7269', 'X', '9669', '4009', '3797', '6363', '4747', 'W', 'G', 4999, 2877, 6009, 'N']