Three boys collected buttons. George collected 3g buttons which was one quarter as many as what Flynn collected. Jeremy collected 4 buttons more than Flynn. How many buttons did they collect altogether? Give the answer in terms of g in the simplest form.