Barley interview question

Word problem to be solved using JavaScript