In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[683, 'e', 'J', 'q', 4293, 'F', 1757, '4651', 'Y', '8919', '8387', 's', 'H', 'q', 'Z', 'B'], [5135, 77, 'w', 1081, 'M', 743, 1711, '4651', 'Y', '8919', '8387', 's', 'H', 'q', 'J', 'K', 'a', 29, 'B', 7173, 'z']