In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2087, 5665, 'W', 'H', 6711, '8181', 'q', '1949', 'j', '7351', 'g', 5827, 4893, 9173], [5187, 4249, '8181', 'q', '1949', 'j', '7351', 'w', 'Z', 'C', 3255]