Let's assume Pat's present age is x. Therefore, Leo's age will be x+5 as he is 5 years older than Pat. Now we need to find their ages in 10 years from now. In 10 yrs, Pat's age will be x+10. And Leo's age will be x+5+10 which is x+15.
Question is saying in 10 years, Leo will be twice Pat's present age, therefore, the equation will be
2 x =x+15 ( where x= Pat's present age and x + 15 is Leo's age in 10 yrs.)
Now solving the equation , we get
2 x- x=15 (taking all x to one side)
x=15
Hence, Pat's present age is 15. (because x is Pat's present age)
Therefore, Leo's age will 15+5=20 as Leo is 5 yrs older than Pat. Answer is : 20 years
We can also check that our answer is right . Leo's age is 20+10= 30 now , which is twice Pat's present age 15.