The speed of an electromagnetic wave in a medium is given by the formula:
\[
v = \frac{c}{\sqrt{\mu_r \epsilon_r}}
\]
where:
- \( c \) is the speed of light in a vacuum (or air),
- \( \mu_r \) is the relative permeability of the medium,
- \( \epsilon_r \) is the relative permittivity of the medium.
This equation is derived from the fundamental properties of the electromagnetic wave's propagation in a medium. Therefore, the correct answer is (B).