In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1309, 1205, 5047, 1973, 1197, 'f', 'j', '6005', '8023', 'P', '7767', 'r', 'X', '2273', '1019', '7885', '9459', '6299', 'i', 'p', '6561', 'b', 'G', 'r', 'w', 't'], ['R', 8499, 'd', 'e', 'Y', 'l', 9471, 4967, 'O', 1849, 5003, 'v', 'w', 1255, 9631, 9625, 's', 'f', 'j', '6005', '8023', 'P', '7767', 'r', 'X', '2273', '1019', '7885', '9459', '6299', 'i', 'p', '6561', 'b', 'X', 'O', 7635, 1485, 8953, 'e', 'd', 'd']