In this case, 5y and 5yz are not like terms because not all the variables have the same exponent.
For them to be like terms we should have (yz) in both terms.
1.6m questions
2.0m answers