Find the acceleration of block B as shown in Fig. 6.191 (a) and (b) relative to block A and relative to ground if block A is moving toward right with acceleration a.