Equations with the distributive property