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.

[8919, 'x', 79, 2035, 'H', '3823', 'x', '6371', 'c', 'g', '5195', 'I', 'U', 'F', 'r'], [7955, 'M', '3823', 'x', '6371', 'c', 'g', '5195', 'A', 917]

3823, x, 6371, c, g, 5195