Hue is arranging chairs. She can form 5 rows of a given length with 2 chairs left over, or 7 rows of that same length if she gets 16 more chairs.

Help me what is the equation please