After the Lithuanians were defeated in the Battle of Strėva by the Teutonic Knights in 1348, Liubartas lost all territories except for eastern Volhynia with Lutsk to Casimir and his ally Louis I of Hungary . Liubartas' brothers Algirdas and Kęstutis organized several expeditions to Poland and Red Ruthenia. Lithuanians allied themselves with Muscovy: Liubartas married an unnamed daughter of Konstantin of Rostov, a relative of Simeon of Moscow, and Algirdas married Uliana of Tver, sister-in-law of Simeon. In spring 1351, Lubartas was taken prisoner by Louis, but was released in summer after a truce was agreed upon with Kęstutis. The deal fell through and more military attacks followed in 1352. Another truce, rather favorable to the Lithuanians, was signed in fall 1352: Lubartas received not only Volhynia and Podolia, but also Belz and Chełm. However, already in 1353, Liubartas attacked again. Casimir responded by organizing a large campaign against the pagan Lithuanians with a special permission from Pope Innocent VI. After the campaign did not achieve the desired results, Casimir contemplated an alliance with the Lithuanians. In 1366, Casimir, allied with Siemowit III of Masovia and nephews of Liubartas, resumed the war. As Algirdas was involved in conflicts in the east and Kęstutis fought with the Teutonic Knights, Liubartas had to defend alone and was defeated. In fall 1366, a treaty was signed: Liubartas retained only eastern Volhynia with Lutsk and became somewhat dependent on Poland . Casimir awarded his allies: Yuri, son of Karijotas, received Chełm, his brother Alexander received Volodymyr-Volynskyi, and Yuri, son of Narimantas, continued to rule Belz.

Question: For how many years did the truce signed in 1352 last?
Answer: 1

Question: What territory did Liubartas not lose in 1948?
Answer: Volhynia

Question: Who was imprisoned in 1351?
Answer: Lubartas

Question: What happened first: Battle of Strėva or Lubartas was taken prisoner?
Answer: Battle of Strėva

Question: What happened second: Battle of Strėva or Lubartas was taken prisoner?
Answer: Lubartas was taken prisoner

Question: How many years after the Lithuanians were defeated in the Battle of Streva was Lubartas taken prisoner by Louis?
Answer: 3

Question: How many years after Lubartas was taken prisoner and released did more military attacks follow?
Answer: 1

Question: What did the allies of Casimir help him do?
Answer: resumed the war

Question: How many years passed between Liubartas losing all territories except Volhynia and Lubartas being taken prisoner?
Answer: 3

Question: How many years after the 1351 deal fell through did a treaty that allowed Liubartas to retain only eastern Volhynia finally get signed?
Answer: 15

Question: How many brothers did Liubartas have?
Answer: 2

Question: Which brother of Liubartas married a relative of Simeon of Moscow?
Answer: Algirdas

Question: Which happened first, Liubartas being taken prisoner or getting married?
Answer: getting married

Question: How many years did Liubartas retain Belz and Chelm for?
Answer: 14

Question: In what years were truces or treaties formed?
Answer: 1351

Question: How many territories did the Lithuanians receive as a result of the second truce?
Answer: 4

Question: Which territory did Liubartas retain both in 1348 and in 1366?
Answer: eastern Volhynia with Lutsk

Question: Who ruled Chelm after Lubartas lost control of the region for the final time?
Answer: Yuri