Find the greatest value of a non-negative real number λ for which both the equations 2x2+(λ−1)x+8=0 and x2−8x+λ+4=0 have real roots.