Let X = original price of rack 1 and same for rack 2
For rack 1 new price = X/2 = 0.5 X
For rack 2
with 20% discount price becomes 0.8 X
further discount on this = 30% or 3/10
New discount = ( 0.8X )x 3/10 = 24 X /100 = 0.24 X
New price Discounted price - new discount
= 0.8 X - 0.24 X = 0.56 X , which is more than 0.5 X
So flat 50% discount is a better buy from rack 1