Explain how it solved?
The first one is different from the second.
1)
Take out a common factor of
Cancel the s in the numerator and denominator
Now you could either expand the numerator, or take out a common factor of , whichever you think is simpler.
2)
Collect like terms in the numerator
Take out the common factor of in the numerator
Cancel out the in the numerator and denominator
.