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

Here is Canvas object wihch demonstrate the problem.