- Didn't know about trimming tailpices to fit, leading to odd
arrangement with more pipe than needed.
- And more critical; that's an S trap now. The pair of vertical elbows at the wall entrance is a definite no-no.
Is this a rental? There has been some seriously unlicensed plumbing going on here, I'd say.
The elbow entering the wall should be turned towards the sink, "just off horizontal" in a "slopes to the drain" manner. 1/4" per foot. Unfortunately it's glued, so correcting that will be a bit of work. Might choose a diferent angle of elbow - 60, 45, 30 or 22.5 to point more directly at the sink.
The sink tailpiece should be extended and the trap lowered so that the exit of the trap is 1/4" per foot of pipe higher than the entrance of the wall drain, not several inches above the drain entrance to the wall. If it's more convenient, you can run the trap exit straight back to the wall and make a horizontal corner there (using the 90 you already have) to a pipe along the wall leading to the drain entrance.
Tailpieces and extensions can and should be trimmed to make the plumbing reasonably direct.They come long, and can be slid a certain amount, and can be trimmed if they are still too long. Aim to trim them so most of the adjustment range remains, rather than making them just reach.
There might still be a venting issue out of sight in the wall, but that addresses what we can see is wrong with the trap setup.
Not great, the angle is such that the green (trying to show going directly to the drain) and the purple (trying but mostly failing to show "back to the wall and turn to follow the wall to the drain" look mostly the same. But an attempt...