Given the task definition and input, reply with output. In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

[8789, 3005, 'b', 4103, 745, 'i', 8695, 3019, '6861', 'c', '1379', '6609', '7859', 'N', 'D', '1783', '1561', 'U', '2167', '591', 'K', 'n', 'l', 'D', '9499', '4587', 'F', 'm', 'j', 'z', 5823, 5241], ['L', 'e', 3975, 'j', 3753, 4517, 'H', 'Q', 7463, 'q', '6861', 'c', '1379', '6609', '7859', 'N', 'D', '1783', '1561', 'U', '2167', '591', 'K', 'n', 'l', 'D', '9499', '4587', 'F', 'K', 'Y', 'E', 8103, 'o', 'j', 3985]

6861, c, 1379, 6609, 7859, N, D, 1783, 1561, U, 2167, 591, K, n, l, D, 9499, 4587, F