Beam deflections by superposition

This problem can be broken into two cases:

Case 1 consists of a simply supported beam with a uniformly distributed load.

Case 2 consists of a simply supported beam with a concentrated load at B.