A flat of plants contains 12 plants. Mario is planting a garden for Princess Peach that has three rows with 10 plants per row. Write and solve an equation for the number of flats that Mario should buy.