In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 8581, 'q', 'n', 5985, 'a', 'u', '3695', '9781', '4861', 'R', 'f', 'l', '3075', 'd', 2805, 3367, 2771, 9249, 'g'], [6903, 'A', 'P', 5605, 'Q', 'o', 'D', 'V', 'u', '3695', '9781', '4861', 'R', 'f', 'l', '3075', 'r', 'g', 6043, 'n', 7137, 5261, 2813, 8263]