In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

[EX Q]: [2255, 4205, 'U', '7567', 'k', 5167], ['Q', 9439, 'U', '7567', 'H', 1307]
[EX A]: U, 7567

[EX Q]: ['L', 'W', 4919, 'y', '665', '9279', 'Z', 'd', '205', 'g', 'n', 305, 'r', 'B'], ['x', 'j', '665', '9279', 'Z', 'd', '205', 'a', 'V']
[EX A]: 665, 9279, Z, d, 205

[EX Q]: ['T', 'H', 'D', 'P', 'S', 8965], [5237, 'M', 'D', 'P', 'M', 'r']
[EX A]:
D, P