Here is Canvas object wihch demonstrate the problem.

Adding the two cases, we can derive the expression for the slope at B:

Propped cantilevers

Substituting our earlier results gives:

Propped cantilevers