Q: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['B', 'q', 'R', 5437, 'H', 'l', 3157, 'D', 2637, 'I', '505', 'h', 'D', '1027', '2217', 'j', '3555', '5175', '587', '6291', '3259', '863', 'g', 'D', '4915', 'G', 'O', '4085', '7577', 'l', 'b', '5501', 'm', '9385', 'B', '787', 'K', 'H', 2881, 'i', 'P', 'x', 2757, 3457], ['Z', 'N', 1335, 'j', 'F', 7059, 4703, 'S', 'Z', 'V', 2043, 3273, '505', 'h', 'D', '1027', '2217', 'j', '3555', '5175', '587', '6291', '3259', '863', 'g', 'D', '4915', 'G', 'O', '4085', '7577', 'l', 'b', '5501', 'm', '9385', 'B', '787', 'Q', 'P', 'Z', 'z', 'I', 'X', 'r', 1543]
A:
505, h, D, 1027, 2217, j, 3555, 5175, 587, 6291, 3259, 863, g, D, 4915, G, O, 4085, 7577, l, b, 5501, m, 9385, B, 787