The uniform 10-kg rod AB is supported by a ball-and-socket joint at A and by the cord CG that is attached to the midpoint G of the rod. Knowing that the rod leans against a frictionless vertical wall at B, determine (a) the tension in the cord, (b) the reactions at A and B.