Algebra: A Combined Approach (4th Edition)

$40=x+2x+5x$ $40=8x$ $x=5$ The lengths of the pieces: 5, 10, 25