Given data:
The first given length is t=4.1 inches.
The second given length is r=7.1 inches.
The given angle is S= 45 degrees.
The expression for the cosine rule is,

Substituute the given values in the above expression.

Thus, the value of s is 5.1 inches.