Answer:
285 and 57
Explanation:
First, find the length of the longer pipe, which is stated to be 5 times longer than the shorter piece. Substitute the longer piece as b. Same for the shorter piece, but as a.

Why a is 5b is because a is the correspondent value to b since they are both substituted, in short words this means that a will be the equivalent of |5 × b - 342|
Next, we substitute the problem in a ruled equation. Think of it this way: There are 2 values in the equation. One has a value of 5 and the other has a value of one. Add those together, and you get 6, right? This will be important for our final answer.

Lastly, substitute a.

Hope this helps!