In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8745, 'C', 'x', 'l', '507', 'z', '8179', '6629', 'h', '6673', 'V', 'T', 'm', 'R', 'd', '9307', '5029', 'I', 8735, 6199, 9993, 10005, 'q', 'N', 'r', 'v', 'Y', 3863], [6549, 3853, 957, 's', 10007, '507', 'z', '8179', '6629', 'h', '6673', 'V', 'T', 'm', 'R', 'd', '9307', '5029', 'k', 85, 'p', 9265, 8543, 'w', 'X', 7937]