The ratio of boys to girls in a swimming lesson is 3:7. If there are 20 children in total, how many boys are there?

The ratio of boys to girls is 3:7, which means that for every 3 boys, there are 7 girls.

We can set up an equation to represent this: 3x + 7x = 20, where x is a variable representing the common ratio.
Combining like terms, we have 10x = 20.
Dividing both sides by 10, we find that x = 2.
Therefore, there are 3 * 2 = <<3*2=6>>6 boys in the swimming lesson. Answer: \boxed{6}.

To find out how many boys are in the swimming lesson, we need to use the ratio given.

The ratio of boys to girls is 3:7. This means that for every 3 boys, there are 7 girls.

Since the total number of children is 20, we can set up the following equation:

3x + 7x = 20

Where x represents the common factor between the number of boys and the number of girls.

Combining like terms, we get:

10x = 20

Dividing both sides by 10, we find:

x = 2

Thus, the number of boys is 3x = 3 * 2 = 6.

Therefore, there are 6 boys in the swimming lesson.