Linear equations with distributive property