In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5397, 9595, 5795, 9497, 5869, 'E', 'd', '3995', 'X', 'E', 'Q', '9521', '3573', '8259', '9225', 'v', 'R', 'V', 'p', '5725', 'i', 'q', 'Q', 'Y', 'a', 5969, 'u', 't', 'r', 8967], ['H', 9019, 'l', 'l', 5011, 'W', 8701, 417, 10011, 9273, 'v', '3995', 'X', 'E', 'Q', '9521', '3573', '8259', '9225', 'v', 'R', 'V', 'p', '5725', 'i', 'q', 'Q', 'Y', 'n', 7227, 'h', 3469, 2849, 'o', 717, 5831, 1351, 'R', 2839, 5011, 4781, 'M', 'b', 's', 'd']