Alternative method for solving 7, using equations instead of pictures: