To factor $ xy+8y+7x+56 $ we can use factoring by grouping.
Group $ \color{blue}{ xy }$ with $ \color{blue}{ 8y }$ and $ \color{red}{ 7x }$ with $ \color{red}{ 56 }$ then factor each group.
$$ \begin{aligned} xy+8y+7x+56 &= ( \color{blue}{ xy+8y } ) + ( \color{red}{ 7x+56 }) = \\ &= \color{blue}{ y( x+8 )} + \color{red}{ 7( x+8 ) } = \\ &= (y+7)(x+8) \end{aligned} $$