How do you know if #9a^2 - 42a + 49# is a perfect square trinomial and how do you factor it?