I know the answer, but is there a formula to show work?

Amy had a piece of wire 96 inches long. She cut the wire into 3 pieces. The second piece was 6 inches longer than the first piece. The third piece is 9 inches longer than the second. What was the length of each piece of wire?
The answers I got were 25,31,40. But it was from trial and error from 3/96=32

first piece : x

second piece : x+6
third piece : (x+6)+9 = x+15

x + x+6 + x+15 = 96
3x = 75
x = 25

F = length of FIRST piece.

S = length of SECOND piece.
T = length of THIRD piece.
=========================
F + S + T = 96
In addition we know,
S = F+6
T = S+9 which = F+6 + 9.
======================
Substitute into F + S + T = 96
for F.
F + F+6 + F + 6 + 9.
Solve for F, then S, then T.
The answers are the same as yours by trial and error.

Thank You so much. It looks so simple, and makes sense the way you wrote it out!

A 92 inch ribbon is cut in 3 pieces the longest peice is 28 inches longer than the shortest peice and the third piece is half the length of the longest piece what is the length of each peice

a 50 inch piece of rope i cut into three pieces so the second piece is one longer than twice the first and the third is four times as long as the first

Difference in length between the longest ribbon and the shortest ribbon is what in yards

SEX