In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6507, 2987, 4253, 'G', 'b', 'R', 'A', 'M', 'i', 'X', 'p', 'e', '6831', 'f', '3517', '7497', 'X', '6901', 'I', '9615', 'l', 'U', 'S', 'u', 3257, 9525], ['H', 'Z', 'G', 'b', 'R', 'A', 'M', 'i', 'X', 'p', 'e', '6831', 'f', '3517', '7497', 'X', '6901', 'I', '9615', 'l', 'U', 'S', 'g', 6853, 5991, 'B', 's', 'n', 'j', 9665, 'e', 'p', 'z', 8015, 'I', 'Y', 't', 4145, 8199, 'D']