You can just speak to Tia in the free market and select "I accidentally sold an equip to an NPC shop."