The issue is that you're asking for a general solution for y only whereas your particular set of equations has a solution only for one specific value of x.
You should have called Solve
as:
Solve[f[x, y] == g[x, y], {x, y}]
During evaluation of Solve::ratnz: Solve was unable to solve the system with inexact coefficients. The answer was obtained by solving a corresponding exact system and numericizing the result. >>
During evaluation of Solve::svars: Equations may not give solutions for all "solve" variables. >>
(* {{x -> 0.3375}} *)
or better, with exact coefficients:
f[x_, y_] := -1 + 1/(18/10 (2/100 + x) + 12/10 (2/100 + y));
g[x_, y_] := -1 + 1/(15/100 + x + 12/10 (15/100 + y));
Solve[f[x, y] == g[x, y], {x, y}]
During evaluation of Solve::svars: Equations may not give solutions for all "solve" variables. >>
(* {{x -> 27/80}} *)
In this case Reduce
or SolveAways
would have been better approaches:
Reduce[f[x, y] == g[x, y], y]
(* x == 27/80 && 89 + 160 y != 0 *)
SolveAlways[f[x, y] == g[x, y], y]
(* {{x -> 27/80}} *)
1.8
with9/5
)? $\endgroup$Solve[{f[x,y]==0,g[x,y]==0},{x,y}]
. $\endgroup$