Excel in math, science, and engineering
Suppose that \(a, b, c, d\) are positive real numbers such that
\[ ab \leq 1000, ~~ac \leq 1000, ~~bd \leq 1000, ~~cd \leq 500. \]
What is the maximum possible value of \( ab+ac+bd+cd\)?