Case 1: 3 5 12 Case 2: 5 2 5