Greetings from Brasil...
It is said that polygons are similar, so we can use the expression of similarity.
BIG/small = BIG/small
35/14 = 25/X
X = 10
But the scale factor is questioned. Just use one of the expressions. We conclude that the largest is 2.5 times the value of the smallest
35/14 OR 40/16 OR 25/10
We get 2.5x
-----------------------------------------------------------
BIG/small = BIG/small
25/5 = 40/Y
Y = 8
25/5 OR 25/5 OR 40/8
We get 5x
times the value of the smallest