Answer: It will take them about 5.45 hours to paint the wall together.
Your equation is good. However, I always like to take it one step further and multiply all the terms by x. That will gives the equation below.
x/12 + x/10 = 1
Now, all we have to do is solve the equation. Multiply everything by 120.
And you get:
10x + 12x = 120
22x = 120
x = 5.45