Adding three numbers (problem solving)