Javascript Basic Problem Solving Questions Math