Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [1763, 'P', 893, 8779, 4729, 2775, 'c', 3959, 'd', 7789, 'b', 'N', 's', 'x', 'w', 4827, 5181, 6673, 1377, 7357, '8429', '4669', 'B', '7477', '8923', 'l', 'V', '7529', '7939', 'f', '3335', 'v', '4751', 'J', '4611', '683', '8259', '3069', '1433', '2813', 'm', '6167', '8019', '9219', '5925', '6365', 'r', 'v', 69, 'X', 'F', 5209, 343, 'K', 'n', 'Y', 'G', 5017, 1045, 9509, 'B'], ['X', 'D', 'D', 'w', 6561, 'D', '8429', '4669', 'B', '7477', '8923', 'l', 'V', '7529', '7939', 'f', '3335', 'v', '4751', 'J', '4611', '683', '8259', '3069', '1433', '2813', 'm', '6167', '8019', '9219', '5925', '6365', 'w', 'O', 'p', 'E', 'h', 741, 2795, 2993, 'J', 3865, 197, 9391, 'o', 'D', 459, 5843, 'F', 'F', 25, 'H', 'T']
Output:
8429, 4669, B, 7477, 8923, l, V, 7529, 7939, f, 3335, v, 4751, J, 4611, 683, 8259, 3069, 1433, 2813, m, 6167, 8019, 9219, 5925, 6365