How does sunscreen work? What you need to know about SPF, UVA and UVB

How does sunscreen work? What you need to know about SPF, UVA and UVB