The correct option is
D Both A and B
Bivalvia is a class of phylum Mollusca. Pila is a genus belonging to phylum Mollusca. It has gills that help in respiration and feeding. Cilia of gills generates water currents. This water current allows exchange of gas and regulate intake of food and removal of waste. It also has pulmonary sac. It comes out of water and respire by taking in air with the help of pulmonary sac.
Thus, the correct answer is option D.