<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_pga_on_rock(self, C, rup, dists):
 """ Returns the median PGA on rock, which is a sum of the magnitude and distance scaling """

        return np.exp(self._get_magnitude_scaling_term(C, rup) +
                      self._get_path_scaling(C, dists, rup.mag))