Problem G with a confusing line