in figure 2,compute for A