The midsegment determines a smaller triangle that is similar to the larger triangle. If two triangles are similar, then their side lengths are at the same ratio, so that:

From this expression, you can determine the value of x:
-First. multiply both sides by 45:

-Second, divide both sides by 5 to determine the value of x:

The value of x is equal to 5