What you need to do is rotate the trap a little and shorten the trap arm a little. That will bring the trap inlet inline with the sink tailpiece. The picture shows the slip joint connection within the trap that will let you rotate the j-bend portion of the trap.
Because of the angle, I can't make out what is happening on the trap arm. Usually there's another slip joint connection there. In which case you can shorten the horizontal projection by pushing more of the trap arm into the slip joint connection. You do need to be sure not to push too much in, you could in theory block the fitting in the wall. But if you push it in as far as it goes, and then pull it out at least 2", that should be fine.
If there's no slip joint connection on your trap arm, please post another photo that show the whole length of the pipe from the trap to the wall.
Cheers, Wayne