Help me in solving LB08A problem

My issue

i cant understand

My code

# Step 1: Read and understand the problem statement and sample test cases

# Click on Next once you are ready to proceed.



Learning course: Python for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone

@raja_develops
The problem states that u have N friends and M left shoes. U have to gift each one of your friend a pair of shoes . So how many minimum numbers of shoes u need to buy to make it possible.
Logic:
if N<=M
u need to buy N more shoes which is the right pair .
else
u need to buy M right pair shoes and (N-M)both pair shoes .