In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: [8109, 621, '8351', '3771', '8861', 'b', '4763', '6373', '2123', '379', '3847', 'u', '5503', '8379', 'h', 'l', 'Q', 'P', '7049', '9945', 'B', 'r', 'R', 9315, 'x', 5059, 'O', 'f', 8589, 3457, 8103, 2295, 6981, 'O', 'h', 'H', 3055, 2967, 'r', 'h', 'W', 5279], ['U', 3981, 'w', 9751, 't', 2009, 'D', 1381, 4105, 'Z', 65, 9681, 1181, 'q', 4517, '8351', '3771', '8861', 'b', '4763', '6373', '2123', '379', '3847', 'u', '5503', '8379', 'h', 'l', 'Q', 'P', '7049', '9945', 'B', 'r', 'j', 'b', 9577, 6337, 949]
A: 
8351, 3771, 8861, b, 4763, 6373, 2123, 379, 3847, u, 5503, 8379, h, l, Q, P, 7049, 9945, B, r