On the statewide Connecticut Mastery Test given to fourth graders in 2004 , 81.2 percent of Wilton 's students achieved a mastery level -- the highest awarded -- on math , while 78.6 percent achieved mastery in reading and 87 percent achieved mastery in writing .