foam is generated from the starch and protein interacting with the water. this is because starch is released into the water during the washing and slicing processes of potatoes, creating a foamy mess.