Solving for dimensions of a cylinder