Case #1: 10 8 Case #2: 7 30