The spectrum of the sun’s rays has both UVA, which is responsible for skin ageing and tanning and UVB, which is responsible for…