extract common values from two lists