kill(all)$

van=facebook.com/LearningCalculus$

f(a,b,c):=sqrt(4*a^2+12)+sqrt(3*b^2+24)+sqrt(2*c^2+18);

f(x,y,z);

Max:-inf$
Min: inf$

for a: 0 thru 6 do
    for b: 0 thru 6 do
        for c:0 thru 6 do
            if a+b+c=6 then
            block
            ([],
                val:f(a,b,c),
                if val < Min then Min : val,
                if val > Max then Max : val
            );

print("        Min:", Min, ",  Max: ", Max, "=", float(Max))$