Answer:
Journal entry to record the purchase of the goods, term n/30:
Dr Merchandise inventory $254,500
Cr Accounts payable $254,500
Journal entry to record the return of some merchandise:
Cr Accounts payable 30,000
Cr Merchandise inventory 30,000
When you purchase merchandise, you should increase the inventory account (asset) be debiting it and increase accounts payable (liability) by crediting it.
When you make a partial or total return, you should reverse the accounts payable by debiting it for the amount of the return and decrease inventory account be crediting it.