a merchant paid $3 each for golfing hats that he sold for $4 each. He therefore earned a gross profit of $1 per hat. by what per cent was the cost price increased to provide for this profit