Fix all the white marbles in one way (since the marbles are identical.)
Then fix all the green marbles in one way in between the white ones.
Fix all the green ones first and then fix the white ones in between the green ones.
in 1 way
$\therefore$ The required no. of arrangements = 1+1=2 ways.