How do i know if an equation has no solution or all real numbers?

for example 6(x+4)=6(x+5)

The 6x terms cancel each other out and leave no unknown in the equation.

6(x+4)=6(x+5)
6x+24 = 6x + 30
24 ≠ 30

I hope this helps. Thanks for asking.