Cority Software interview question

Just simple mathmatic problem