Year Six solved mathematical problems to crack a code and read secret messages on their WW2 living history day