Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['x', 'I', 8777, 7925, 'Q', 'q', 9079, 7261, 'N', 'g', 3893, 1063, 379, 507, 'O', '5791', 'A', '1229', '795', '9375', '8827', '949', 'I', 'I', 'b', 'n', 'r', '8257', 'e', 'C', 9161], ['Y', 569, 'a', 'O', '5791', 'A', '1229', '795', '9375', '8827', '949', 'I', 'I', 'b', 'n', 'r', '8257', 'f', 7103, 6811, 6923, 6101, 'v', 'R']
A:
O, 5791, A, 1229, 795, 9375, 8827, 949, I, I, b, n, r, 8257