A proposed prototype of the function:
function calc_extention(a, b, c2c)
returns ext_a, angle_a, ext_b, angle_b
a: wall A thickness
b: wall B thickness
c2c: corner to corner measure
ext_a: wall A extension
angle_a: wall A cutting angle
ext_b: wall B extension
angle_b: wll B cutting angle