input: Write a function to sort two lists by the order of the second list.
  assert sort_two_lists([3, 1, 2], [2, 3, 1]) == ([2, 3, 1], [1, 2, 3])
  assert sort_two_lists(['a', 'b', 'c'], [3, 1, 2]) == (['b', 'c', 'a'], [1, 2, 3])
  assert sort_two_lists([10, 30, 20], [1, 3, 2]) == ([10, 20, 30], [1, 2, 3])
output: def sort_two_lists(list1, list2):
      sorted_pairs = sorted(zip(list2, list1))
      sorted_list2, sorted_list1 = zip(*sorted_pairs)
      return list(sorted_list1), list(sorted_list2)