The given situation can be written in an algebraic way.
If pathos age is a, and Yamir age is b. You have:
Yamir is twice as old as pato:
b = 2a
in three years, the sum of their ages will be 30:
(b + 3) + (a + 3) = 30
replace the b = 2a into the last equation, and solve for a, just as follow:
2a + 3 + a + 3 = 30 simplify like terms left side
3a + 6 = 30 subtract 6 both sides
3a = 30 - 6
3a = 24 divide by 3 both sides
a = 24/3
a = 8
Hence, the age of Pato is 8 years old.