Let Kamal's present age be $K$ years and Sunil's present age be $S$ years.
We translate the given information into algebraic equations:
Sunil's age in 6 years: $S + 6$
Kamal's age in 6 years: $K + 6$
Equation 1: $S + 6 = 2(K + 6)$
Sunil's age 2 years ago: $S - 2$
Kamal's age 2 years ago: $K - 2$
Equation 2: $S - 2 = 4(K - 2)$
Simplify the two equations:
Since both expressions equal $S$, we set them equal to each other to solve for $K$:
$2K + 6 = 4K - 6$
Subtract $2K$ from both sides: $6 = 2K - 6$
Add 6 to both sides: $12 = 2K$
Divide by 2: $K = 6$
Kamal's present age is 6 years.