The governor of state A earns $50,145 more than the governor of state B. If the total of their salaries is $295,595, find
the salaries of each.