With BM diagrams I was taught to go along the beam from left to right and sum all moments to the left. This would mean looking at the SF diagram at each point and take moments about each point to the left. The sum of moments should = 0 at each end Always follow the correct sign convention.
Converting the distributed loads to point loads will help with this.