Ribs are adapted to their function of protecting the vital organs in the chest cavity by being strong, curved bones that form a protective cage around the heart and lungs. The curvature of the ribs helps to distribute the force of any impact or pressure evenly, reducing the risk of injury to the organs they encase. Additionally, the ribs are connected to the sternum and spine by flexible joints, allowing for movement and expansion of the chest during breathing while still providing support and protection. The ribs also have a layer of cartilage at their ends, which allows for some flexibility and shock absorption. Overall, the structure and composition of the ribs are well-suited to their important role in protecting the vital organs in the chest cavity.