Pourriez-vous m’aider Merci d’avance

Bonjour,
a)
périmètre du rectangle:
2( x-3 + x+1)
= 2( 2x -2)
= 4x -4
périmètre triangle:
3x
b)
4x-4 = 3x
4x-3x = 4
x = 4