A gardener planted tomato plants and cucumber plants in a garden the ratio of tomato plants to cucumber plants is 5:2

This means that for every 5 tomato plants, there are 2 cucumber plants. In other words, the ratio of tomato plants to total plants (tomato and cucumber plants combined) is 5:2+5=7.

Let's say there are 5x tomato plants and 2x cucumber plants in the garden.

So, the total number of plants in the garden is 5x+2x=7x.

Therefore, the ratio of tomato plants to total plants is 5x:7x, which simplifies to 5:7.

So, the gardener planted 5 tomato plants for every 7 total plants in the garden.