Programming question


#1

image


#2

ADD(MUL(a,b-1),MUL(a+1,ADD(a,b)))
MUL(a,b-1)*MUL(a+1,ADD(a,b))
a+b-1*MUL(a+1,ADD(a,b))
a+b-1*a+1+ADD(a,b)
a+b-1*a+1+a*b
4+5-1*4+1+4*5
4+5-4+1+20
26

So output is 26