In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['T', 5485, 8845, 'x', 6637, 2227, '2687', 'g', '3657', 'e', 'k', 'M', '7441', 's', 'H', 'I', '6643', '8011', 'r', 'D', 'y', 'V', 6819, 3977, 'V', 77, 'l', 'm'], [3097, 'K', 7577, 1161, 'I', 2151, 'Z', 'n', '2687', 'g', '3657', 'e', 'k', 'M', '7441', 's', 'H', 'I', '6643', '8011', 'r', 'D', 'Q', 'u', 'P']