Math question…almost finished, just needs some revision