The ratio of the measures of three sides of a triangle is 2:5:4, and its perimeter is 154 units. Find the measure of each side of the triangle.