Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [6563, 5073, 'N', 9177, 4869, 'd', 5535, 'e', 'p', 'R', 4633, 7461, 6123, 1433, 'n', 3645, 8575, 7507, '5143', '5785', '8963', '9029', '2919', 'b', 'F', '693', '9441', '6009', '3897', '3859', '6213', '2833', '3307', '6779', '3113', '1711', '7813', 'G', '1731', '4523', 'I', '1241', 'V', 'I', '2817', '1535', '5709', 'Y', 'V', 8487, 'y', 441, 7799, 'B', 2095, 'L', 7253, 6581, 5971, 'c', 'd', 5187, 9793, 7657, 8939, 1149, 7263, 9381, 8649, 'l', 1087, 8191, 8791, 5859, 5947], ['f', 9219, 'w', 3309, 2661, 9945, 3619, 6785, 't', 'u', 'N', 'g', 'x', 'J', 5027, 'X', 8455, 9913, 'C', 'n', 2071, 'E', 'u', '5143', '5785', '8963', '9029', '2919', 'b', 'F', '693', '9441', '6009', '3897', '3859', '6213', '2833', '3307', '6779', '3113', '1711', '7813', 'G', '1731', '4523', 'I', '1241', 'V', 'I', '2817', '1535', '5709', 'Y', 'H', 1035, 'z', 'Q', 111, 'S', 't', 6063, 'f', 'g', 6251, 'y', 7961, 'D', 7087, 'y', 'J', 8903, 7037, 7093, 929, 2757, 561, 1857, 4233, 4987]
Output:
5143, 5785, 8963, 9029, 2919, b, F, 693, 9441, 6009, 3897, 3859, 6213, 2833, 3307, 6779, 3113, 1711, 7813, G, 1731, 4523, I, 1241, V, I, 2817, 1535, 5709, Y