Complex sentence: Prostitution in Nigeria is illegal but it is mainly confined to the major cities such as Lagos.
Split into simpler sentences: Prostitution in Nigeria is illegal. It is mainly confined to the major cities such as Lagos.