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.

[8717, 'J', 'd', 'C', 'h', '6583', 't', '5423', 'k', '1357', 'T', 8765, 1075], ['Z', 'D', '6583', 't', '5423', 'k', '1357', 'M', 1483, 'M', 'D', 7253]

6583, t, 5423, k, 1357