Solving for a side length