numbersmath problem
 
Magnets