Let the initial number be represented by variable n.
ATTACHED IS THE SOLUTION
9.4m questions
12.2m answers