We need to convert 2 grams to milligrams, first.
The conversion ratio is 1 gram = 1000 mg, so,
[tex]2\text{grams}\times\frac{1000mg}{1\text{gram}}=2\times1000=2000mg[/tex]Each tablet is 500 mg, so in 2000 mg, there will be,
[tex]\frac{2000}{500}=4\text{tablets}[/tex]Answer4 tablets