Assuming that the net 10 day discount is taken in both cases this is a very straightforward problem.
Just take the total amount and subtract the 2% for A
For B, subtract the 1% discount and add the $400 freight
ie The 2% discount would equal .02 x $20,000