Case for pencils or sunglasses