When 40% of the girls left the school assembly, the ratio of the number of boys to girls became 3 to 4. If there were w girls when the assembly started, what was the total number of boys when the assembly started?