In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['i', 'N', 5599, '10031', '5739', '7349', '4701', '7403', 's', 'k', 'l', 451], [9983, 'h', 'a', 1875, 4005, 7891, '10031', '5739', '7349', '4701', '7403', 's', 'k', 'B', 'X', 6363, 109]
A:
10031, 5739, 7349, 4701, 7403, s, k