Oops!
Basically the difference is in the point of view regarding the class to which this analysis will be done.
I explain:
Let's take as example the class "Example"
efferent coupling: Let's say the example class needs to send an email and post some information in an API. If you have a bad design, this class will depend efferent to these two classes:
class Exemplo{
ClienteEmail clienteEmail;
ClienteApi clienteApi;
}
That is, the class Example has coupling efferent to classes ClienteEmail and ClienteApi.
Afferent coupling are the classes that use the "Example class" example:
class Aplicacao{
Exemplo exemplo;
}
class Teste{
Exemplo exemplo;
}
That is, both Application and Test have an affine coupling to the Example class.
I know they were toy examples and I know how not applicable these examples are, but I hope I have elucidated your question a little.
A more detailed explanation you can find here:
link