The largest dimension of the enlarged photo will be: Width= 175 inches and Length= 245 inches.
Explanation
Dimension of the original photo is 5×7 . That means the ratio of the width to the length is 5 : 7
So, lets assume the width is [tex]5x[/tex] and length is [tex]7x[/tex] for the enlarged photo.
Formula for the perimeter of a rectangle [tex]=2(length+width)[/tex]
As the perimeter of the enlarged photo should not exceed 840 inches, so...
[tex]2(7x+5x)\leq 840\\ \\ 2(12x)\leq 840\\ \\ 24x\leq 840\\ \\ x\leq \frac{840}{24}\\ \\ x\leq 35[/tex]
That means the maximum value of [tex]x[/tex] must be 35.
So, the largest possible width [tex]=5x=5*35=175[/tex] inches
and the largest possible length [tex]= 7x= 7*35=245[/tex] inches