The guy on the right is...
You need to convince him to let you pass.
This is talking game, so talk to him.
On the right you progress bar, showing how much the guard is convinced:
If it gets full you pass.
If it will get empty you will be arrested.
To avoid loosing progress do not provoke the guard to talk about...