code: def knapsack_greedy(items, maxweight):
      r
      items_subset = []
      total_weight = 0
      total_value = 0
      for item in items:
          value, weight = item[0:2]
          if total_weight + weight > maxweight:
              continue
          else:
              items_subset.append(item)
              total_weight += weight
              total_value += value
      return total_value, items_subset