In a legislative assembly, the ratio of the members of the ruling party to the members of the opposition party was 7 : 3. Eighteen members of the ruling party left their party and joined the opposition party, making this ratio 3 : 2. Find the total number of members in the assembly.