Solve if applies, math homework help