input: Write a function to sort a dictionary by its values and return the sorted keys and values in separate lists.
  assert sort_dict_by_values({'Alice': 91, 'Bob': 85, 'Charlie': 92}) == [['Bob', 'Alice', 'Charlie'], [85, 91, 92]]
  assert sort_dict_by_values({'Zach': 76, 'Yvonne': 88, 'Xander': 82}) == [['Zach', 'Xander', 'Yvonne'], [76, 82, 88]]
  assert sort_dict_by_values({'Dave': 60, 'Eve': 70, 'Frank': 65}) == [['Dave', 'Frank', 'Eve'], [60, 65, 70]]
output: def sort_dict_by_values(d):
      sorted_items = sorted(d.items(), key=lambda item: item[1])
      sorted_keys = [item[0] for item in sorted_items]
      sorted_values = [item[1] for item in sorted_items]
      return [sorted_keys, sorted_values]