how do I factor 49x^2-42y+9
I think you might mean this :
49x^2-42x+9 .....if so, this is a perfect square trinomial
(7x - 3) (7x - 3) =
(7x - 3) ^2