Using word types to work out an answer