The measurements of the three sides of a triangle are represented by the expressions 2x, 3x and 4x. If the perimeter of this triangle is 18 feet, find the measurement of all three sides.