Please correct logic errors in the following text:
It is not compulsory. Everyone who has had their compulsory education has the right to upper secondary education.
It is not compulsory, but everyone who has had their compulsory education has the right to upper secondary education.