The first option.
The total mechanical energy before an action (which makes up PE and KE) equals the total mechanical energy after an action.
So
KEi + PEi = KEf + PEf
9.5m questions
12.2m answers