A special type of musical composition which has 2 themes is often referred to as a fugue.