Recursion tiling

please explain the logic to make ab from (-a) and (-b) i have done for all 3 cases by adding or subtracting a,b times from a in case of negative b a is subtracted from a (-b-1) times and in case of addition we will add a to a b times
also the logic for the second problem