This is what you want from a math teacher. The word problem you see here is what happened after a Redditors “friend” was caught using his phone during math class. The teacher confiscated the phone, and set the passcode to a certain number, found by answering the problem.
via Teacher Takes Students Phone, Sets Passcode as Math Problem Answer.