Online Math Rätsel

In each grid the start and finish numbers (end numbers) are printed in circles. the end number depends on the grid size: a 5 by 5 grid has ...