Preparing mathematics for middle school subjects