calculate a+b.