How would you factor this (3x^2+x)+ (3x+1).... Can you please show ur steps on how u get the answer so I understand how to do the problem. Thank You

(3x^2+x)+ (3x+1)

= x(3x + 1) + 1(3x + 1)
= (3x + 1)(x + 1)