Can you provide some test cases for this problem

can you provide some test cases for this problem???

Try to calculate answer for following testcase:

  1. (2,1)
  2. (3,2)
  3. (2,4)
  4. (5,1)