In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5019, 'm', 5779, 'P', 'r', 'S', 4087, 1367, 6681, 'H', 'U', 497, 'B', 4035, 9931, '3491', '8155', 'y', '6929', 'I', '987', 'w', 'Q', 'k', 'T', '7541', 'T', 'A', '3793', '7741', 'R', '451', 'z', '3373', 'Y', '525', 'u', 'f', 'd', '9863', '2761', 'S', 'm', 'g', 'T', 961, 3127, 1631, 5689, 8765, 'X', 4895, 3651, 8839, 5361, 5115, 2881, 6523, 1405, 3047, 2343, 'T'], [3403, 3149, 'n', 't', 'S', 5361, 'H', 'n', 3197, 6265, 4675, 'S', 5617, 'B', 9889, 'f', '3491', '8155', 'y', '6929', 'I', '987', 'w', 'Q', 'k', 'T', '7541', 'T', 'A', '3793', '7741', 'R', '451', 'z', '3373', 'Y', '525', 'u', 'f', 'd', '9863', '2761', 'S', 'm', 'P', 'n', 'A', 9619, 3717, 947, 6089, 2153, 'C', 'i', 6033, 'd', 1869, 'r', 'P', 1689, 1479, 's', 6267, 'q', 6395, 271, 6369, 'W', 6699, 'u']