Adding mathematical solution