solve for x in triangle similarity

"The segment connecting the midpoints of two sides of a triangle is parallel to the third side and equals its half length"