In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5209, 9399, 6295, '5087', 'K', 'a', '855', '4333', 'T', 'm', 2657, 'n'], [2833, 'E', 3959, 991, 5183, '5087', 'K', 'a', '855', '4333', 'h', 8451, 'S', 'p', 9139]