# How do you solve for g in gr+5n=yf+rf?

$g r = y f + r f - 5 n = f \left(y + r\right) - 5 n$
$g = \frac{f \left(y + r\right) - 5 n}{r}$