This equation is simplistic if you look at it closely.
f(1)=6.
f(4)= (6x4)
6x4 is 24.
Hope this helped!