40-4k to the powerr of 3 for k=2

do you mean

40-4k^3

if so, then for k=2,

49-4*2^3 = 40-4*8 = 40-32 = 8