I can never get these answers right omggg I need help!

The perimeter of a rectangle is 24cm. The length is 4cm. Write and solve an equation to find the width of the rectangle.