Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
See one example below:
Problem: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Solution: 8297, b
Explanation: Here, '8297, b' is the longest common subsequence in both the input lists [5797, 8817, '8297', 'b', 'U', 'b'] and [5843, 8809, '8297', 'b', 'W', 'C'].

Problem: ['g', 'J', 1159, 2045, 'R', 8009, 7851, 'x', 8515, 2325, 's', 6339, 'y', 5077, 8417, 's', 6989, 'T', 'I', 'l', 8769, 143, 'z', 9565, 't', 'D', 9977, '5765', 'H', '7093', '3539', '5913', '7861', '6545', 'U', 't', 'D', '5839', 'P', 'Y', '8675', 'Z', 'D', 'g', 'v', 'm', 'X', 'A', 'K', 'T', '9473', 'w', '6823', '2553', 'N', 'Q', 'B', 7931, 2835, 'E', 1017, 'H', 'f', 'V', 'c', 'z', 8523, 7871, 'E', 'O', 2147, 'W', 7335, 'f', 'p', 'K', 'd'], ['O', 't', 'r', 9493, 3095, 5031, 'd', 'J', 5313, 'Y', 773, 495, 3691, 9371, 7741, 'O', 'i', 'P', 4235, 'K', '5765', 'H', '7093', '3539', '5913', '7861', '6545', 'U', 't', 'D', '5839', 'P', 'Y', '8675', 'Z', 'D', 'g', 'v', 'm', 'X', 'A', 'K', 'T', '9473', 'w', '6823', '2553', 'N', 'Q', 'c', 3773, 1451, 'O', 'a', 6755, 8629, 'n', 9751, 'M', 'M', 3795, 4549, 'u', 7579, 3969, 3175, 'J']
Solution:
5765, H, 7093, 3539, 5913, 7861, 6545, U, t, D, 5839, P, Y, 8675, Z, D, g, v, m, X, A, K, T, 9473, w, 6823, 2553, N, Q