Why would an egg solidifies when boiled and a potato gets soft??
You should do your own research. It is part of learning. A boiled egg becomes solid because heat causes the denaturation of the proteins. Denaturation is a process in which proteins or nucleic acids lose their structure (tertiary structure) by application of some external stress or compound for example, treatment of proteins to heat. A potato becomes soft because it is composed of carbohydrates (starch), and heat breaks down the composition of the potato. Heat changes the structure and so it becomes soft. This is just a quick explanation but you need to research it more by using some of the key words here.