Please make a simplified expression for both shapes!!

Answer:
2x+3 for the square
Step-by-step explanation:
I am not sure how to do the triangle one but I know how to do the square. since all the sides are equal in a square you would make the equation 4(1/2x+3) for your answer. 4times 1/2 is = 2 so it would be 2x+3 I THINK