In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4845, 3095, 6071, 'd', 'd', '5689', 'X', '5727', '4407', 'x', 'z', 'K', 6163, 'a'], [3025, 'O', 'd', '5689', 'X', '5727', '4407', 'B', 'T', 8693]