Hitesh is 40 years old and Ronnie is 60 years old. How many years ago was the ratio of their ages 3 : 5

$\par&space;Suppose,&space;the&space;ratio&space;was&space;3&space;:&space;5,&space;x&space;years&space;ago.$

$\frac{40&space;-&space;x}{60&space;-&space;x}&space;=&space;\frac{3}{5}$

$5(40&space;-&space;x)&space;=&space;3(60&space;-&space;x)$

$2x&space;=&space;20$
$x&space;=&space;10$