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