Complex sentence: Mykolas Kęstgaila was voivode of Samogitia in 1412-1432,1440-1441,1443-1450, castellan of Vilnius in 1443-1448.
Split into simpler sentences: Mykolas Kęstgaila was voivode of Samogitia in 1412-1432,1440-1441, and 1443-1450. He was also the castellan of Vilnius in 1443-1448.