I finally achieved what I wanted to do.
After clicking a button to choose the level, the composable AdditionScreen is called. I then compare the level value with the difficulty value from data. If it matches, nothing to do. If not, I call the updateGameDifficulty(level) function to update the difficulty, num1 and num2.