Remember these three formulas (really, learn these by heart):
[tex]{(a + b)}^{2} = a^{2} + 2ab + b^{2} [/tex]
[tex]{(a - b)}^{2} = a^{2} - 2ab + b^{2} [/tex]
[tex](a + b)(a - b) = a^{2} - b^{2} [/tex]
The stated formula is a manifestation of the last of these three. So indeed,
[tex](y + 15)(y - 15) = y^{2} - 225[/tex]