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
7.1m questions
9.5m answers