the math part is common sence -_-