How is it solved and what formula should be used?

use the formula in your text.