If you noticed there was no south pole next to the y, no magnet at all infact, there was just one magnet on side x, meaning that only x is exposed to the magnetic field.
Current flows from Y side through to X, meaning x is going downwards.
I could be wrong, the question was very open to the...