Answer:
For the triangle,

For the rectangle,

Explanation:
To solve for x in these equations, we have treat each side as it's just one number - add them all up.
The perimeter of a triangle will be the sum of all 3 of its sides.
So:

We can combine like terms to get

Subtract 1 from both sides:

Divide both sides by 4:

For the rectangle, the perimeter is
, so we can add up the sides.

Combine like terms:

Add 4 to both sides:

Divide both sides by 18:

Simplifying this fraction gets us

Hope this helped!