Please Help!!!

A rope 25 feet long is cut into 3 pieces. The first piece is 2x feet long, the second piece is 5x feet long, and the third piece is 4 feet long.

a.) Write and solve an equation to find x

b.) Find lengths of the first and second pieces.