For 3x + 12 + x, do like terms:
4x + 12
For 4(3 + x), multiply
12 + 4x
They are both the same, just written in different ways. One is adding like terms and the other is multiplying with parentheses. Even though it may be switched around, it is still the same.
Hope this helps :)