If ac=5x-16 and gf = 2x-4 then af =

6x+17

Maybe you could provide a bit more context here ...