Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [8935, 6835, 5319, 7843, 'z', 195, 'P', 7999, 2763, 'J', 'j', '4367', '9075', 'a', 'U', 'G', 'F', 'n', 'o', '3903', '1201', '9609', 'v', '5985', 'b', 'v', 'd', 'X', '7871', '1773', 'g', '141', '2781', '3749', '8079', 'j', 'Z', 't', '1537', 'x', 641, 'a', 'U', 'R', 4793, 'U', 'U', 'X', 2915, 9801], ['g', 'q', 'P', 'M', 'h', 'K', 'j', 6401, 3729, 8137, 845, 's', 229, 'J', 'j', '4367', '9075', 'a', 'U', 'G', 'F', 'n', 'o', '3903', '1201', '9609', 'v', '5985', 'b', 'v', 'd', 'X', '7871', '1773', 'g', '141', '2781', '3749', '8079', 'j', 'Z', 't', '1537', 't', 10031, 8125, 2151, 9425, 'h', 'x', 1965, 5049, 'w']
Output:
J, j, 4367, 9075, a, U, G, F, n, o, 3903, 1201, 9609, v, 5985, b, v, d, X, 7871, 1773, g, 141, 2781, 3749, 8079, j, Z, t, 1537