can 12x^2 and 3x be like terms

No, 12x^2 and 3x cannot be considered like terms because they have different variables raised to different exponents. Like terms have the same variables raised to the same exponents.