Complex sentence: The hymn is the national anthem of both Tanzania and Zambia, and was formerly the anthem of Zimbabwe and Namibia.
Split into simpler sentences: The hymn is the national anthem of Tanzania and Zambia. It is also the former anthem of Zimbabwe and Namibia.