In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[423, 'Q', 'w', 'M', 7387, 8387, 'q', 'h', 'L', 4431, 2423, 'j', 'T', '4783', 'M', 'L', 'V', '305', '1263', 'X', 'o', '2413', '9871', '3237', 'K', 'x', '2673', '8195', '5953', '2025', 'P', '2103', 'Z', 'v', 'h', 'f', 4789, 8019, 's'], [3781, 'R', 'H', 9487, 'i', 'q', 5045, 3345, 215, 3601, 'h', 'W', 'Q', 1073, 'C', 's', 2247, 'r', 2593, 'B', 'i', 'T', '4783', 'M', 'L', 'V', '305', '1263', 'X', 'o', '2413', '9871', '3237', 'K', 'x', '2673', '8195', '5953', '2025', 'P', '2103', 'Z', 'v', 'N', 1025]