PASCAL 2023 Problem 23

Dewa writes down a list of four integers. He calculates the average of each group of three of the four integers. These averages are 32,39,40,44. What is the largest of the four integers?