Bubble Math - Solve the mathematical operation