It's just simple logic picture 1 of 1