The sum of angles a, b and c all add up to 180 degrees. The measure of angle a is 54 degrees; the angle of measure of angle b is (6x + 1) degrees and angle c is 25x + 1. Write and solve an equation to find x.