The perimeter of a rectangle is 50 cm and the length is 4 cm longer than the width. Write and solve the system of equations using the substitution method.