'Problem of double coincidence of wants' is removed because money acts as
Medium of exchange
Money as a medium of exchange removed the problem of double coincidence of wants.
Money as medium of exchange solves the barter's problem of lack of double coincidence of wants as money has separated the acts of sale and purchase. You can sell goods for money to whosoever wants it and with this money you can buy goods from whosoever wants to sell them.