3(x+y)+a(x+y)

what about 3*n + a*n? If you can do that, you can do the one above.