Respuesta :

This answer uses NMF, which you can find in my profile:

y = {k}/{x}
7 = {k}/{2}
14 = k

f(x) = {14}/{x}