def extract_rear(test_tuple):
  
  res = list(sub[len(sub) - 1] for sub in test_tuple)
  return (res) 
def similar_elements(test_tup1, test_tup2):
  
  res = tuple(set(test_tup1) & set(test_tup2))
  return (res) 