HPPPL (HP Prime Programming Language), 58 bytes
EXPORT s(m)
BEGIN
return sum([2,3,4,1].*m)+10*min(m);
END;
HPPPL is the programming language for the HP Prime color graphing calculator/CAS.
Example runs:
EXPORT s(m)
BEGIN
return sum([2,3,4,1].*m)+10*min(m);
END;
HPPPL is the programming language for the HP Prime color graphing calculator/CAS.
Example runs: