Question 342924
Let x = small number

Let y = bigger number

x + y = 40
x + y + 5 = 57


You have two equations in two variables.  In other words, you have a system of two linear equations.

I guess you don't need to solve this system because you requested a translation of words to equations.