For calculating reactions, always replace a UDL with its equivalent point load.
The magnitude of the point load is the area of the UDL rectangle ($w \times l$).
The location of the point load is at the centroid of the UDL.
Then apply the standard equilibrium equations $\Sigma M = 0$ and $\Sigma F_y = 0$.