Input (grade 13): Siding with the Axis would have meant that Portugal would have been at war with Britain, which would have threatened Portuguese colonies, while siding with the Allies might prove to be a threat to Portugal itself.
Output (grade 12): If he had joined with forces with Adolf Hitler it would have put Portugal's many colonies at risk from attack by Britain, while joining with the Allies it would have put Portugal itself at risk.