Three boys collected beads. Gabriel collected 4a beads which was one quarter as many as what Brandon collected. Jeremy collected 3 beads less than Gabriel. How many beads did they collect altogether? Give the answer in terms of a in the simplest form.