The two cells are guard cells and epidermal cells.
When seen through the microscope, the guard cells might appear to be like a bean, while the epidermal cells have an irregular shape.
The functions of both the cells are very different.
The guard cells are responsible for the exchange of gas in the plant.
This is done by regulating the size of the stoma.
Epidermal cells protect a plant from the external environment.