To write this statement in mathematical form let x be the number we don't know. Since we have twice the number this means 2x, then we have to substract 6, that is, 2x-6. This is equatl to 5, then the equation is

Solving for x we have

Therefore x=5.5.