BairesDev interview question

Basic algebra and pattern recognition questions.