A staircase was colored in such a way that vertical part of some stairs was green and for some it was yellow. Similarly, the horizontal part of some stairs was yellow and for some it was green. Total number of stairs was 12. Write an algebraic equation using the above information.
Let the total number of surfaces with green and yellow color be g and y respectively.
Then, algebraic equation will be: g + y = 24