The equation is 25x+23+19x+30+54x+27=6. We can rewrite the equation as
25x+2523+19x+1930+54x+5427=6. Combining the terms with x, we get x(251+191+541)+2523+1930+5427=6. We have 5427=21. So, x(251+191+541)=6−(2523+1930+21). We have 251+191+541=25×19×5419×54+25×54+25×19=256501026+1350+475=256502851. We have 2523+1930+21=25×19×223×38+30×50+19×25=950874+1500+475=9502849. So, x256502851=6−9502849=9506×950−2849=9505700−2849=9502851. Thus, x=9502851×285125650=95025650=952565=27. So, we have x=27. Now, we can check this:
2527+23+1927+30+5427+27=2550+1957+5454=2+3+1=6. So the answer is correct.