Suppose that a cylinder has a radius of r units, and that the height of the cylinder is also r units. The lateral area of the cylinder is 338 square units. Find the value ofr.