To factor $ ru+uy+rs+sy $ we can use factoring by grouping.
Group $ \color{blue}{ ru }$ with $ \color{blue}{ uy }$ and $ \color{red}{ rs }$ with $ \color{red}{ sy }$ then factor each group.
$$ \begin{aligned} ru+uy+rs+sy &= ( \color{blue}{ ru+uy } ) + ( \color{red}{ rs+sy }) = \\ &= \color{blue}{ u( r+y )} + \color{red}{ s( r+y ) } = \\ &= (u+s)(r+y) \end{aligned} $$