In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5097, 'w', 9055, 'i', 'J', 1209, 'b', 'd', 851, 4853, 7669, 5713, 'n', 'X', 'r', 'H', 5327, 'g', 'f', 'u', 8359, 'M', '8781', '1781', 'v', '8097', 'Y', '8175', '7891', 's', '8157', '2591', '4501', '9589', '4213', '9237', '4057', 'a', '5951', 'h', '921', 'Y', '2715', 'L', 'y', 'G', 'T', 'P', 'w', 8167, 2657, 'S', 1625, 'X', 'J', 'm', 'e', 'L'], [7509, 'k', 'd', 'h', 1527, '8781', '1781', 'v', '8097', 'Y', '8175', '7891', 's', '8157', '2591', '4501', '9589', '4213', '9237', '4057', 'a', '5951', 'h', '921', 'Y', '2715', 'L', 'y', 'G', 'T', 'P', 'W', 1987, 'P', 7449, 1379, 7157, 1705, 7809, 'R', 501, 'j', 'n', 9713, 'q', 2051]