
where x is the first, y the second and z the third
the second gear has 13 more teeth than the first gear

The third gear has 15 more teeth than the second gear

we need solve z form the third equation and solve x from the second equation an replace on the first

replacing

so, the second gear have 35 teeth