Explain Output Format of the Question

As we are printing only final answer in question then why answer is 12 and 1…what actually one is there?