The shortes side is x.
One side is five more than the shortest side, so it's x+5.
The longest side is 16 more than the shortest side, so it's x+16.
The perimeter, or the sum of all sides, is 147.
[tex]x+x+5+x+16=147 \\
3x+21=147 \\
3x=147-21 \\
3x=126 \\
x=\frac{126}{3} \\
x=42 \\ \\
x+5=42+5=47 \\ \\
x+16=42+16=58[/tex]
The lengths of the three sides are 42 in, 47 in, and 58 in.