Answer:
For M84:
M = 590.7 * 10³⁶ kg
For M87:
M = 2307.46 * 10³⁶ kg
Step-by-step explanation:
1 parsec, pc = 3.08 * 10¹⁶ m
The equation of the orbit speed can be used to calculate the doppler velocity:

making m the subject of the formula in the equation above to calculate the mass of the black hole:
.............(1)
For M84:
r = 8 pc = 8 * 3.08 * 10¹⁶
r = 24.64 * 10¹⁶ m
v = 400 km/s = 4 * 10⁵ m/s
G = 6.674 * 10⁻¹¹ m³/kgs²
Substituting these values into equation (1)

M = 590.7 * 10³⁶ kg
For M87:
r = 20 pc = 20 * 3.08 * 10¹⁶
r = 61.6* 10¹⁶ m
v = 500 km/s = 5 * 10⁵ m/s
G = 6.674 * 10⁻¹¹ m³/kgs²
Substituting these values into equation (1)

M = 2307.46 * 10³⁶ kg
The mass of the black hole in the galaxies is measured using the doppler shift.
The assumption made is that the intrinsic velocity dispersion is needed to match the line widths that are observed.