It's important to know that there're distinctive intensities of electromagnetic waves that come from the Sun. UV stands for UltraViolet rays, which have higher intensity and energy than sunlight.
Therefore, Sunscreen A will prevent sunburn more effectively.
The reason for this answer is because UV rays can cause long-term damage to skin cells due to their high energy.