Can someone explain to me how this is the correct graph of its inverse? Im having trouble understanding it. It would be much appreciated thanks!!

Can someone explain to me how this is the correct graph of its inverse Im having trouble understanding it It would be much appreciated thanks class=