# Given examples 24, 60, 120, 30, 40 12, 24, 6, 8