Answers:
Governor of State A = $172,870
Governor of State B = $122,725
========================================
Work Shown:
A = B+50,145
A+B = 295,595
(B+50,145)+B = 295,595
2B+50,145 = 295,595
2B = 295,595-50,145
2B = 245,450
B = (245,450)/2
B = 122,725 ... salary for governor of state B
A = B+50,145
A = 122,725 + 50,145
A = 172,870 ..... salary for governor of state A
-------------
Check:
A+B = 172,870 + 122,725 = 295,595
So the answers are confirmed.