Cubic function word problems