Let the first brother = x
second brother = x + 2
third brother = x + 4
The product of the first and third boys' ages is 20 more than twice the second boy's age:
x(x+4) = 2(x+2) + 20
x² + 4x = 2x + 4 + 20
x² + 4x - 2x - 24 = 0
x² + 2x - 24 = 0
(x - 4)(x + 6) = 0
x = 4 or -6 (rejected, age cannot be negative)
First brother = 4
Second brother = 4 + 2 = 6
Third brother = 4 + 4 = 8
The three boys are 4, 6, and 8 years old.