I want to calculate the work what happens in the process.Do I need to
consider the change of the pressure or do I consider only the volume
change?
While it appears that your system is probably closed, the general answer is it depends on whether your system is a closed system or an open system. That's because there are two general types of possible work (excluding shaft work), depending on whether is system is closed (no mass transfer permitted) or open (permitting mass transfer).
For a closed system, work is referred to as "boundary work", or $PdV$ work, which occurs when a force acts through a displacement. For boundary work the general expression is
$$W=\int p\,dV$$
For an open system, we have flow work, or $VdP$ work. This is the work needed to push a working fluid into or out of the boundaries of the system against a pressure difference. The general expression for flow work is
$$W=-\int v\,dP$$
The above said, you cannot determine the work done unless you know the process or path that takes you from state 1 to state 2. Or, alternatively, if for a closed system you have enough information to determine the heat transfer $Q$ and the change in internal energy $\Delta U$ so you can determine the work done $W$ by applying the first law, $\Delta U=Q-W$. All you have been given are the equilibrium conditions for the two states, not the path between. If the system were an ideal gas, $\Delta U=0$ because there is no change in temperature. But you would still need to know $Q$. There are an infinite number of possible paths between the two states, each potentially giving a different value of work.
Hope this helps.