The governor of state A earns ​$54,900 more than the governor of state B. If the total of their salaries is ​$310,850​, find the salaries of each