To cook dried beans and peas, start by rinsing them thoroughly and then soaking them in water overnight. The next day, drain the soaking water and rinse the beans or peas again. Add fresh water or broth to a pot, bring it to a boil, and then add the beans or peas. Reduce the heat and simmer until they are tender. Cooking times may vary depending on the type of beans or peas you are using.