In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: [4525, 'j', 3511, 5253, 2029, 4569, 'Q', 'b', 7593, 6999, 'g', 4951, 2915, 9935, 'E', 'M', 1705, 'g', 'l', 'A', 1575, 2971, 889, 'j', 'W', '6985', '2023', '9733', '9547', '4915', '3597', '6385', '165', 'b', 'i', 'a', 'O', '7575', '9765', 'F', '2529', '7925', 'e', 'P', '5065', '4441', '6709', 'H', '8003', 'U', '1607', 's', '9161', 'G', 5887, 'a', 'S', 'z', 8553, 1835, 4261, 8469], [4255, 'Z', 3117, 997, 'g', 'O', 'J', 9963, 'M', 8107, 2441, 'L', 8945, 227, 'y', 1101, 8579, 6119, 'r', 'p', 7871, 'C', 'n', 8657, 7379, 1661, 'b', 6335, 'h', 7999, 'j', 'W', '6985', '2023', '9733', '9547', '4915', '3597', '6385', '165', 'b', 'i', 'a', 'O', '7575', '9765', 'F', '2529', '7925', 'e', 'P', '5065', '4441', '6709', 'H', '8003', 'U', '1607', 's', '9161', 'b', 7497, 'O', 'p', 's', 5993, 'K', 'g', 9953, 'G', 's', 'i', 'S', 2927, 3383, 8709, 'l', 'O', 4229, 1139, 7263, 1567, 3371, 7749, 'F', 'Z', 9815, 5889, 9145, 'K']
A:
j, W, 6985, 2023, 9733, 9547, 4915, 3597, 6385, 165, b, i, a, O, 7575, 9765, F, 2529, 7925, e, P, 5065, 4441, 6709, H, 8003, U, 1607, s, 9161