Complex sentence: The York district and town taking its name from York County, Western Australia (in turn named after Prince Frederick, Duke of York and Albany), was first settled in 1831, two years after Perth was settled in 1829.
Split into simpler sentences: The York district and town took its name from York County, Western Australia (in turn named after Prince Frederick, Duke of York and Albany). The area was first settled in 1831, two years after Perth was settled in 1829.