The X-ray Properties of Optically Selected Galaxy Groups and Clusters