In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1269, 9813, 8845, 'h', 4109, 'S', 'w', 2443, 'M', 8789, '4833', '7903', 'A', '7187', '1791', 'P', 'n', '259', 'X', '9293', 'f', 'E', '5939', 'R', 'D', 'P', 'Z', 8843], ['q', 767, 'q', 6787, 8681, 'S', '4833', '7903', 'A', '7187', '1791', 'P', 'n', '259', 'X', '9293', 'f', 'E', '5939', 'R', 'D', 'P', 'e', 'O', 2297, 9107, 5469, 9785, 2923, 'k', 2883, 8841, 6303, 'Y', 9791, 'f', 'S']