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.

[1597, 1193, 'N', 'V', 'H', 6781], [5719, 7707, 'N', 'V', 'e', 1985]

N, V