Let $a, b, c, m, n, p, k$ be positive real numbers that satisfy $a+m = b+n = c+p=k$. Show that $an+bp+cm < k^2$.