On the bike you should be eating all carbs basically. Protein and fat takes more energy to break down, energy that you don’t want to be spending on getting your energy. Bloks, Gu, etc. are all products that are pretty popular for meeting those needs.
Post ride it’s 4g of carbs to 1 g of protein. Generally want about ~200 cal worth of that. Clif, Hammer, Scratch, etc. all offer products that meet this requirement that are described as ‘recovery drinks’.
You should have a carby breakfast 2-3 hours before the ride, think oatmeal with some fruit. Make sure you are used to eating it. Get some of your simple carb food in you about 15 min before the ride begins. You want your digestion braking down food the entire time to maximize the amount of glucose that you have available to you.