(lg5)^2+lg2×lg50+6lg√10
=lg5×lg5+lg2×(lg5+lg10)+3lg10
=lg5×(lg5+lg2)+lg2+3
=lg5×lg(5×2)+lg2+3
=lg5+lg2+3
=4