Intro algebra. Family =A, Pets =B. 5A +5B=… or 5(A+B) =…
What do you get?