Do The Math!
You must start from the end and work your way forward. How many calories of what nutrients do you need for what timeframe!
Pasta is bread. Nutritionally, it is not as balanced as beans. Mixed with protein and fat supplying foods (TVP/freeze-dried meat and oil) it is better than parboiled rice, but, is by far the most expensive per calorie. Buy name brands (made with decent wheats) on sale and, as stated, stack deep out of the boxes in Mylar (I like 7 Mil self-standing) bags with O2 and H2O absorbers and it'll last an edible generation.
Water? Think about ONGOING SOURCES and PURIFYING it. Water on hand is a very short term thing. I store a small amount: 3-packs of gallon jugs bought on sale in Summer when cheap. 2-liter soda bottles with a coupla drops of fresh chlorine bleach. 100-liter platoon canteen filled when hazardous weather or other issues are announced.