Explain how to write and solve an equation to find an unknown side length of a rectangle when given the perimeter.