In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5113, 'A', 'Y', 'O', 247, 'X', 'G', 'd', '3439', '7181', 't', '7881', 'D', 'P', 'c', 'Z', 3605, 'K', 8579, 2489], ['k', 2727, 7425, 1947, 'W', 'G', 'd', '3439', '7181', 't', '7881', 'D', 'y', 'y', 'E', 417, 6553, 'r']