To draw the shear-force and bending-moment diagrams, we must first compute the beam reaction forces at A and B.