We know that p must be larger than d since a discount means something will be cheaper. Then we know that $2.50 is essentially what p-d should equal to (p-d =2.50)
Then you work through the various tables and find which values will consistently give you 2.50 as the difference between p and d.