function solution(x, n) { var answer = []; let sum = 0; for(let i =0; i<n; i++){ if(answer.length < n){ sum += x answer.push(y); } } return answer; }