At a cake stall , muffins cost $2 each & cookies cost $1 each. The cake stall earned $146. If 2 more cookies than muffins were sold, how many muffins were sold?