Given a function

, we can solve for

for some

by solving for

in the equation

.
I'm not sure whether your function

is

or

, so I'll solve it separately for each.
In the first case, we have

, so adding

to both sides,

. Dividing by two gives

.
In the second, we have

, so multiplying by three gives

, and adding seven gives

. Dividing by two gives

.