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