Are you using a database or is the page static?
Would this show as two items in the cart or one item with the price = (2*[price])-5?
There are a variety of ways this could be handled and different options are available depending on the specific development conditions you are working in and the end user experience you expect. The easiest way depends on how many of these discounts are offered and how the surrounding store works.