Sponsored
Use these hints if you're stuck. Try solving on your own first.
Extract each word from the sentence and check if it represents a price.
For each price, apply the given discount to it and update it.
Solve with full IDE support and test cases