Equality of two variable weighted means: reduction to differential equations