To find the beam deflection at B, simply add the deflections found from case 1 (distributed load w only) and case 2 (force By only).
The roller support is a rigid support that prevents the beam from moving either up or down at B. Since the beam cannot deflect vertically at B, a geometry of deformation equation for the beam can be written as: