Input (grade 10): In April 1940, Germany invaded Denmark and Norway to secure shipments of iron ore from Sweden, which the Allies were about to disrupt.
Output (grade 12): Then, in April 1940, Germany decided to attack Norway and Denmark so that it would be safer to transport iron ore from Sweden, which the Allies tried to disrupt but failed.