Red pencils cost 3 for 10¢. Blue pencils cost 5¢ each. Green pencils cost 2 for 5¢. If you can purchase any color you wish, what is the greatest number of pencils you can you can buy for 50¢?