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.

The lengths of the three sides are 42 in, 47 in, and 58 in.