I try to make an exercise where you have to calculate multiplication here is the code to create the questions.

```
   const [questionsArray,setQuestionsArray] = useState([]);
   const [multiplyArray, setMultiplyArray] = useState([35]);
   const [multBy, setMultBy] = useState(5);

   function createQuestionsArray() {
     for (var m = 0; m < multiplyArray.length; m++) {
       for (var b = 1; b < multBy+1; b++) {
         var question = multiplyArray[m]+'x'+b;
         setQuestionsArray((prev) => [...prev, question]);
       }
     }
   }

```

So what I want at the end is questionArray = [35x1,35x2,35x3,35x4,35x5] but I have questionArray = [35x5,35x5,35x5,35x5,35x5].
What is the problem? please