We perform a calculation of the interaction of the DDˉ, DsDˉs coupled channels and find two bound states, one coupling to DDˉ and another one at higher energies coupling mostly to Ds+Ds−. We identify this latter state with the X0(3930) seen in the D+D− mass distribution in the B+→D+D−K+ decay, and also show that it produces an enhancement of the Ds+Ds− mass distribution close to threshold which is compatible with the LHCb recent observation in the B+→Ds+Ds−K+ decay which has been identified as a new state, X0(3960).