Three boys collected stamps. Japheth collected 3f stamps which was one third as many as what Bobby collected. Bryan collected 7 stamps less than Japheth. How many stamps did they collect altogether? Give the answer in terms of f in the simplest form.