Here's what you need to do: slide the shorter side of the p-trap over the tailpiece. Now, move around to line up the arm with the wall's opening.
Use a pipe cutter to cut the tailpiece if the p-trap isn't moving upward anymore, and that's all!