The governor of state A earns ​$52,215 more than the governor of state B. If the total of their salaries is ​$294,915​, find the salaries of each.