If Team A loses its last two matches, it will finish with 38 points while if Team D wins its last two matches, it will finish with 34. Nevertheless, regardless of goal difference or any other tiebreaker, if Teams B and C still have to play each other then Team A is safe from relegation since Teams B and C cannot both reach 38 points, while Team D will be relegated since Teams B and C cannot both finish with less than 35 points.