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
3.5m questions
4.4m answers