input: def max_revenue(weights: List[float], values: List[float]) -> float:
      """ Calculate the maximum possible revenue from the items with given weights and values.
      >>> max_revenue([2, 1, 3], [4, 2, 3])
      7
      """
output:     n = len(weights)
      dp = [0] * (n + 1)
      
      for i in range(n):
          for j in range(i + 1, n):
              if weights[i] != weights[j]:
                  dp[j] = max(dp[j], dp[i] + values[j])
      
      return max(dp)