Desired output of code

https://ide.codingblocks.com/s/340417 please correct me where i am wrong the output should be[5,10] but its showing [10,5]