Answer:
see below picture
Step-by-step explanation:
This is what I made out of your pseudocode.
The sum of 30 is of course impossible given the available numbers.
Print debugging
Edge 2021
9.4m questions
12.2m answers