Let x be the length of one part; then the length of the other part is (100-x).
Next, write the equation from the condition
- = 18.
Multiply by 3*4 = 12 both sides
3*(100-x) - 4x = 12*18.
Simplify
300 - 3x - 4x = 216 - 300
-7x = -84
x = = 12.
ANSWER. The parts are 12 and 100-12 = 88.
CHECK. - = 22 - 4 = 18. ! Correct !