sustainable primary surplus/deficit

A.Calculate the sustainable primary surplus/deficit for each country and identify which countries (if any) have a potential debt crisis on their hands.
b. For any countries with an unsustainable debt path identify possible changes that could bring the country back to sustainability.