As a teacher, 8GB RAM should be sufficient. If you're using something like a Macbook Pro, 4GB should be enough. Don't even consider less than that as performance will seriously suffer. This is especially true if you're online teaching.