In the arrangement shown in figure \( a_1 \), \( a_2 \), \( a_3 \) and \( a_4 \) are the accelerations of masses \( m_1 \), \( m_2 \), \( m_3 \) and \( m_4 \) respectively. Which of the following relation is true for this arrangement?
\( 4a_1 + 2a_2 + a_3 + a_4 = 0 \)
\( a_1 + 4a_2 + 3a_3 + a_4 = 0 \)
\( a_1 + 4a_2 + 3a_3 + 2a_4 = 0 \)
\( 2a_1 + 2a_2 + 3a_3 + a_4 = 0 \)