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

Q: ['B', 'f', 'Y', 'r', 4391, 'B', '6995', '7077', 'p', '3191', 'M', 1379, 5473], [3689, 'g', 5189, 'w', 4837, 'B', '6995', '7077', 'p', '3191', 'B', 9145]

A: B, 6995, 7077, p, 3191
****
Q: ['J', 'b', 'R', 'v', 6421, 'i', 4179, '3583', '7897', '9525', 'b', '4163', '5465', '255', '5923', 't', 9093, 9035, 8487], ['V', 'j', '3583', '7897', '9525', 'b', '4163', '5465', '255', '5923', 'F', 6281, 8109, 'R', 2589]

A: 3583, 7897, 9525, b, 4163, 5465, 255, 5923
****
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
****